From 45f40f32b7eff1c341236bf3b8ccb8a9164465cf Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 5 Oct 2022 23:33:39 -0700 Subject: [PATCH] admin user page fix --- files/templates/userpage.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 48d9f6e44..c44fb0153 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -218,12 +218,12 @@ Block - {% if v.admin_level >= PERMS['ADMIN_ADD'] and SITE != 'rdrama.net' and not u.admin_level %} - Make admin + {% if v.admin_level >= PERMS['ADMIN_ADD'] and SITE != 'rdrama.net' %} + Make admin + {% endif %} + {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} + Remove admin {% endif %} - {% if v.admin_level >= PERMS['ADMIN_REMOVE'] and u.admin_level %} - Remove admin - {% if u.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %} Revert admin actions {% endif %} @@ -594,12 +594,12 @@ Block - {% if v.admin_level >= PERMS['ADMIN_ADD'] and SITE != 'rdrama.net' and not u.admin_level %} - Make admin + {% if v.admin_level >= PERMS['ADMIN_ADD'] and SITE != 'rdrama.net' %} + Make admin {% endif %} - {% if v.admin_level >= PERMS['ADMIN_REMOVE'] and u.admin_level %} - Remove admin + {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} + Remove admin {% endif %} {% if u.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %}