add a Django Admin link to the menu if the logged-in user is staff

This commit is contained in:
Thomas Steen Rasmussen 2018-04-11 10:21:09 +02:00
parent 2ed19d22dc
commit 547b594c8d

View file

@ -74,6 +74,7 @@
<li><a href="{% url 'people' %}">People</a></li>
{% if user.is_authenticated and user.is_staff %}
<li><a href="{% url 'backoffice:index' %}">Backoffice</a></li>
<li><a href="{% url 'admin:index' %}">Django Admin</a></li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">