fix: Only try to access trust level when authenticated
This commit is contained in:
@@ -92,6 +92,7 @@
|
||||
{% translate 'Tierheime in der Nähe' %}
|
||||
</a>
|
||||
<br/>
|
||||
{% if request.user.is_authenticated %}
|
||||
{% trust_level "MODERATOR" as coordinator_trust_level %}
|
||||
{% if request.user.trust_level >= coordinator_trust_level %}
|
||||
<a class="nav-link " href="{% url "modtools" %}">
|
||||
@@ -104,6 +105,7 @@
|
||||
<i class="fa-solid fa-screwdriver-wrench fa-fw"></i>{% translate 'Admin-Bereich' %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
Reference in New Issue
Block a user