add perms conditionals in /admin

master
Aevann 2023-02-19 21:17:09 +02:00
parent 472bed996f
commit 8d660cb49a
1 changed files with 7 additions and 3 deletions

View File

@ -52,7 +52,7 @@
{% if v.admin_level >= PERMS['USER_SHADOWBAN'] %}
<li><a href="/admin/shadowbanned">Shadowbanned Users</a></li>
{% endif %}
<li><a href="/banned">Banned Users</a></li>
<li><a href="/banned">Banned Users</a></li>
{% if FEATURES['AWARDS'] -%}
<li><a href="/chuds">Chudded Users</a></li>
<li><a href="/grassed">Currently Grassed Users</a></li>
@ -68,7 +68,9 @@
<h4>Safety</h4>
<ul>
<li><a href="/admin/banned_domains">Banned Domains</a></li>
{% if v.admin_level >= PERMS['DOMAINS_BAN'] %}
<li><a href="/admin/banned_domains">Banned Domains</a></li>
{% endif %}
{% if v.admin_level >= PERMS['USER_LINK'] %}
<li><a href="/admin/alts/">View and Link Alts</a></li>
{% endif %}
@ -90,7 +92,9 @@
{% if FEATURES['GAMBLING'] -%}
<h4>Casino</h4>
<ul>
<li><a href="/admin/lottery/participants">Participants</a></li>
{% if v.admin_level >= PERMS['LOTTERY_VIEW_PARTICIPANTS'] %}
<li><a href="/admin/lottery/participants">Participants</a></li>
{% endif %}
</ul>
{%- endif %}