From eeca9617bde10646b25d601d1e75526ac74574ab Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 6 Oct 2022 02:33:46 -0700 Subject: [PATCH] post comment moderation tools visible permission --- files/helpers/const.py | 1 + files/templates/comments.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 86c9b184f..8bdbddc96 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -137,6 +137,7 @@ PERMS = { # Minimum admin_level to perform action. 'USER_VOTERS_VISIBLE': 0, 'POST_COMMENT_MODERATION': 2, 'POST_COMMENT_DISTINGUISH': 1, + 'POST_COMMENT_MODERATION_TOOLS_VISIBLE': 2, 'POST_EDITING': 3, 'USER_BADGES': 2, 'USER_BAN': 2, diff --git a/files/templates/comments.html b/files/templates/comments.html index 7028d366c..a20d31479 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -682,7 +682,7 @@ -{% if v and v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %} +{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION_TOOLS_VISIBLE'] %}