post comment moderation tools visible permission

master
justcool393 2022-10-06 02:33:46 -07:00
parent 30f3321218
commit eeca9617bd
2 changed files with 3 additions and 2 deletions

View File

@ -137,6 +137,7 @@ PERMS = { # Minimum admin_level to perform action.
'USER_VOTERS_VISIBLE': 0, 'USER_VOTERS_VISIBLE': 0,
'POST_COMMENT_MODERATION': 2, 'POST_COMMENT_MODERATION': 2,
'POST_COMMENT_DISTINGUISH': 1, 'POST_COMMENT_DISTINGUISH': 1,
'POST_COMMENT_MODERATION_TOOLS_VISIBLE': 2,
'POST_EDITING': 3, 'POST_EDITING': 3,
'USER_BADGES': 2, 'USER_BADGES': 2,
'USER_BAN': 2, 'USER_BAN': 2,

View File

@ -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'] %}
<div class="modal fade d-md-none" id="adminModal-{{c.id}}" tabindex="-1" role="dialog" aria-labelledby="actionsModalTitle" aria-hidden="true"> <div class="modal fade d-md-none" id="adminModal-{{c.id}}" tabindex="-1" role="dialog" aria-labelledby="actionsModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content"> <div class="modal-content">
@ -820,7 +820,7 @@
<script defer src="{{'js/clipboard.js' | asset}}"></script> <script defer src="{{'js/clipboard.js' | asset}}"></script>
{% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} {% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION_TOOLS_VISIBLE'] %}
<script defer src="{{'js/comments_admin.js' | asset}}"></script> <script defer src="{{'js/comments_admin.js' | asset}}"></script>
{% endif %} {% endif %}