add a Django Admin link to the menu if the logged-in user is staff
This commit is contained in:
parent
2ed19d22dc
commit
547b594c8d
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue