mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Show link to Sentry on the header if the user is a superuser
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
{% endif %}
|
||||
{% if request.user.is_staff %}
|
||||
<li><a href="/nexus/">Admin</a></li>
|
||||
{% endif %}
|
||||
{% if request.user.is_superuser %}
|
||||
<li><a href="{% url sentry %}">Sentry</a></li>
|
||||
{% endif %}
|
||||
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user