mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Don't attempt to show Sentry if its not enabled
This commit is contained in:
@@ -64,8 +64,10 @@
|
|||||||
{% if request.user.is_staff %}
|
{% if request.user.is_staff %}
|
||||||
<li><a href="/nexus/">Admin</a></li>
|
<li><a href="/nexus/">Admin</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if "sentry"|installed %}
|
||||||
{% if request.user.is_superuser %}
|
{% if request.user.is_superuser %}
|
||||||
<li><a href="{% url sentry %}">Sentry</a></li>
|
<li><a href="{% url sentry %}">Sentry</a></li>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
|
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user