From 9f86dfad9e4464f6c2b7c0e640795746c79e7f91 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 15 Mar 2023 06:51:36 +0200 Subject: [PATCH] fix /admin --- files/templates/admin/admin_home.html | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index 790b5877c..2b231e216 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -83,22 +83,18 @@ {% endif %} -{% if FEATURES['BADGES'] -%} -

Grant

+{% if FEATURES['BADGES'] and v.admin_level >= PERMS['USER_BADGES'] -%} +

Badges

{%- endif %} -{% if FEATURES['GAMBLING'] -%} +{% if FEATURES['GAMBLING'] and v.admin_level >= PERMS['LOTTERY_VIEW_PARTICIPANTS']-%}

Casino

{%- endif %}