mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-15 02:13:39 -06:00
changed has_roles to has_role for singular role check
technically actually less direct when you look at the code, but inefficiency? I care not
This commit is contained in:
@@ -116,7 +116,7 @@ Color = Bulma Color Type of the Message Box
|
||||
<div class="navbar-text">Dashboard</div>
|
||||
</a>
|
||||
<hr class="navbar-divider">
|
||||
{% if current_user.has_roles(['Hidden']) %}
|
||||
{% if current_user.has_role('Hidden') %}
|
||||
<a class="navbar-item" href="{{ url_for('hidden') }}">
|
||||
<span class="navbar-fa-icon fas fa-user-ninja"></span>
|
||||
Hidden
|
||||
|
||||
Reference in New Issue
Block a user