From 35162a48999e9799d7a1ceb57a3ff6f1a1ffd31b Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 6 Oct 2022 18:44:33 -0700 Subject: [PATCH] submission: change ADMIN_HOME_VISIBLE permissions to can view post mod tools perm user: make so user can't moderate themselves at least in the UI --- files/templates/submission.html | 4 +- files/templates/userpage.html | 67 ++++++++++++++++----------------- 2 files changed, 35 insertions(+), 36 deletions(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index e08f4ba333..20375cd14c 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -590,7 +590,7 @@ {% endif %} -{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} +{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION_TOOLS_VISIBLE'] %} {% include "post_admin_actions_mobile.html" %} {% endif %} @@ -902,7 +902,7 @@ - {% if v and v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %} + {% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION_TOOLS_VISIBLE'] %} diff --git a/files/templates/userpage.html b/files/templates/userpage.html index a3a971c3a4..9c72030cbd 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -222,7 +222,7 @@ Make admin {% endif %} {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} - Remove admin + Remove admin {% endif %} {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %} Revert admin actions @@ -336,43 +336,42 @@ {% endif %} {% endif %} - {% endif %}

 						

-					{% if v and v.admin_level >= PERMS['USER_AGENDAPOSTER'] %}
-						
- - - -
+ {% if v and v.admin_level >= PERMS['USER_AGENDAPOSTER'] %} +
+ + + +
+

+							Disable Chud Theme
+						{% endif %}
 						

-
-						Disable Chud Theme
-					{% endif %}
+						{% if v and v.admin_level >= PERMS['USER_BAN']}
+							Mute
+							Unmute
+						{% endif %}
 						

-					{% if v and v.admin_level >= PERMS['USER_BAN']}
-						Mute
-						Unmute
-						

-					{% endif %}
-					{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
-						
- - - -
-

-						
- - - -
- {% endif %} - {% if FEATURES['COUNTRY_CLUB'] and v and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] %} -

-						
-						
+						{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
+							
+ + + +
+

+							
+ + + +
+ {% endif %} + {% if FEATURES['COUNTRY_CLUB'] and v and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] %} +

+							
+							
+						{% endif %}
 					{% endif %}
 					

 					
@@ -594,7 +593,7 @@ {% endif %} {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} - Remove admin + Remove admin {% endif %} {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %}