mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 18:42:21 +01:00
Show toolbar admin if is_staff
This commit is contained in:
@ -35,7 +35,7 @@
|
||||
<li{% if request.path == url %} class="active"{% endif %}><a href="{{ url }}">Manage</a></li>
|
||||
{% url 'stats:stats' as url %}
|
||||
<li{% if request.path == url %} class="active"{% endif %}><a href="{{ url }}">Stats</a></li>
|
||||
{% if user.is_superuser %}
|
||||
{% if user.is_staff %}
|
||||
{% url 'admin:index' as url %}
|
||||
<li><a href="{{ url }}">Admin</a></li>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user