forked from MarseyWorld/MarseyWorld
add perms conditionals in /admin
parent
472bed996f
commit
8d660cb49a
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue