From 3099ec3f34666b1dffff5cb64005ab9812f6b58a Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 11 Feb 2024 16:31:01 +0200 Subject: [PATCH] dont show the configuration categories for jannies who have no access to its contents --- files/templates/admin/admin_home.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index 84259fcca..d35719775 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -123,18 +123,20 @@
  • Statistics
  • -

    Configuration

    - + {% 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'] %} +

    Configuration

    + + {% endif %} {% if POLL_THREAD and v.admin_level >= PERMS['USE_ADMIGGER_THREADS'] %}

    Polls