From 7fa874fd84638b48cfffb521aa7a34deb4e4ce0b Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 6 Oct 2022 03:34:12 -0700 Subject: [PATCH] check current user's admin level not the victim's --- files/templates/userpage.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 64d3afafd..a3a971c3a 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -224,7 +224,7 @@ {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} Remove admin {% endif %} - {% if u.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %} + {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %} Revert admin actions {% endif %} @@ -597,7 +597,7 @@ Remove admin {% endif %} - {% if u.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %} + {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %} Revert admin actions {% endif %}