mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +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 %}
|
||||
<li><a href="/nexus/">Admin</a></li>
|
||||
{% endif %}
|
||||
{% if "sentry"|installed %}
|
||||
{% if request.user.is_superuser %}
|
||||
<li><a href="{% url sentry %}">Sentry</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user