From 767093d060e39795618201031644c6797ee4ef7e Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 6 Oct 2022 00:32:05 -0700 Subject: [PATCH] add perms for things we don't really know what they are --- files/helpers/const.py | 6 ++++++ files/templates/comments.html | 6 +++--- files/templates/settings2.html | 2 +- files/templates/submission.html | 2 +- files/templates/submission_listing.html | 4 ++-- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index f2fa1e17d1..9394a2a307 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -187,6 +187,12 @@ PERMS = { # Minimum admin_level to perform action. 'MESSAGE_BLOCKED_USERS': 1, 'APPS_MODERATE': 3, 'STREAMERS_MODERATION': 2, + 'UNKNOWN_ADMIN_LEVEL2_PERM1': 2, + 'UNKNOWN_ADMIN_LEVEL2_PERM2': 2, + 'UNKNOWN_ADMIN_LEVEL2_PERM3': 2, + 'UNKNOWN_ADMIN_LEVEL2_PERM4': 2, + 'UNKNOWN_ADMIN_LEVEL2_PERM5': 2, + 'UNKNOWN_ADMIN_LEVEL2_PERM6': 2, } FEATURES = { diff --git a/files/templates/comments.html b/files/templates/comments.html index 556c7ca406..bcd30e88ed 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -315,7 +315,7 @@ - {% if v and request.path.startswith('/@') and v.admin_level < 2 %} + {% if v and request.path.startswith('/@') and v.admin_level < PERMS['UNKNOWN_ADMIN_LEVEL2_PERM1'] %}
  • {% if voted==1 %} @@ -366,7 +366,7 @@