mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-06-21 03:58:24 +02:00
Continue to remove old perm system
This commit is contained in:
@ -26,12 +26,13 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endblock %}
|
||||
{% block userlinks %}
|
||||
{# Link to our apps outside of admin #}
|
||||
<a href="{% url "users:profil" %}">{% trans 'My profile' %}</a> /
|
||||
<a href="{% url "media:index" %}">Media</a> /
|
||||
<a href="{% url "media:index" %}">{% trans 'Library' %}</a> /
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
{% if is_perm %}
|
||||
{% if perms.users.add_user %}
|
||||
<a href="{% url "users:new-user" %}">Nouveau utilisateur</a> /
|
||||
{% endif %}
|
||||
{% if user.is_staff %}
|
||||
<a href="{% url "logs:index" %}">Statistiques</a> /
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user