dont show the configuration categories for jannies who have no access to its contents

master
Aevann 2024-02-11 16:31:01 +02:00
parent 5fd8458ce3
commit 3099ec3f34
1 changed files with 14 additions and 12 deletions

View File

@ -123,18 +123,20 @@
<li><a href="/stats">Statistics</a></li>
</ul>
<h4>Configuration</h4>
<ul class="pb-3">
{% if v.admin_level >= PERMS['EDIT_RULES'] %}
<li><a href="/admin/edit_rules">Edit the Rules</a></li>
{%- endif %}
{% if PERMS['HOLE_CREATE'] and v.admin_level >= PERMS['HOLE_CREATE'] %}
<li><a href="/create_hole">Create Hole</a></li>
{% endif %}
{% if v.admin_level >= PERMS['APPS_MODERATION'] %}
<li><a href="/admin/apps">Apps</a></li>
{% endif %}
</ul>
{% if v.admin_level >= PERMS['EDIT_RULES'] or PERMS['HOLE_CREATE'] and v.admin_level >= PERMS['HOLE_CREATE'] or v.admin_level >= PERMS['APPS_MODERATION'] %}
<h4>Configuration</h4>
<ul class="pb-3">
{% if v.admin_level >= PERMS['EDIT_RULES'] %}
<li><a href="/admin/edit_rules">Edit the Rules</a></li>
{%- endif %}
{% if PERMS['HOLE_CREATE'] and v.admin_level >= PERMS['HOLE_CREATE'] %}
<li><a href="/create_hole">Create Hole</a></li>
{% endif %}
{% if v.admin_level >= PERMS['APPS_MODERATION'] %}
<li><a href="/admin/apps">Apps</a></li>
{% endif %}
</ul>
{% endif %}
{% if POLL_THREAD and v.admin_level >= PERMS['USE_ADMIGGER_THREADS'] %}
<h4>Polls</h4>