mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Refactor a bit right handling
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
<ul>
|
||||
<li><a href="{{ url('core:user_profile', user_id=user.id) }}">Profile</a></li>
|
||||
<li><a href="{{ url('core:user_list') }}">Users</a></li>
|
||||
<li><a href="{{ url('core:page_list') }}">Pages</a></li>
|
||||
<li><a href="{{ url('core:page', page_name="Index") }}">Pages</a></li>
|
||||
<li><a href="{{ url('club:club_list') }}">Clubs</a></li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
@ -12,10 +12,10 @@
|
||||
{% if request.user.id == profile.id %}
|
||||
<li><a href="{{ url('core:user_tools') }}">Tools</a></li>
|
||||
{% endif %}
|
||||
{% if user.has_perms('core.change_user') or user.id == profile.id %}
|
||||
{% if can_edit(profile, request.user) or user.id == profile.id %}
|
||||
<li><a href="{{ url('core:user_edit', user_id=profile.id) }}">Edit</a></li>
|
||||
{% endif %}
|
||||
{% if user.has_perms('core.change_prop_user') %}
|
||||
{% if can_edit_prop(profile, request.user) %}
|
||||
<li><a href="{{ url('core:user_prop', user_id=profile.id) }}">Props</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user