mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
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:
parent
dfc07fcb4c
commit
9813be70b0
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user