Fix notify.html to properly check for superuser

notify.html wasn't properly checking for superuser so the whole site would crash and burn in a fiery blaze when a user logged in
This commit is contained in:
Scott R 2021-09-16 21:23:08 -05:00
parent dfc07fcb4c
commit 9813be70b0

View File

@ -28,7 +28,7 @@
<p class="font-weight-light text-muted mb-0">{{ r }}</p>
{% end %}
</div>
{% if data['super_user'] %}
{% if "Super User" in data['user_role'] %}
<a class="dropdown-item" href="/panel/activity_logs"><i class="dropdown-item-icon mdi mdi-calendar-check-outline text-primary"></i> Activity</a>
{% end %}
<a class="dropdown-item" href="/public/logout"><i class="dropdown-item-icon mdi mdi-power text-primary"></i>Sign Out</a>