From 117532c4f97fc3c6b532398fef39c54f09e67d7e Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 25 Apr 2023 07:53:20 +0200 Subject: [PATCH] stop using numbers for admin_level comparison --- files/templates/chat.html | 2 +- files/templates/submission_listing.html | 2 +- files/templates/userpage/admintools.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/templates/chat.html b/files/templates/chat.html index 443e0f5f4..b68d7bc4e 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -59,7 +59,7 @@ {% if m %}{{m['text']}}{% endif %} - {% if v.admin_level > 1 %} + {% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} {% endif %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 406972696..e1dee88e8 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -4,7 +4,7 @@ {% include "modals/award.html" %} {% endif %} -{% if v and v.admin_level > 1 %} +{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} {% endif %} diff --git a/files/templates/userpage/admintools.html b/files/templates/userpage/admintools.html index 0ea2fdc7f..7ea674d9f 100644 --- a/files/templates/userpage/admintools.html +++ b/files/templates/userpage/admintools.html @@ -79,7 +79,7 @@ {% endif %} {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} - + {% endif %} {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] and u.admin_level %}