forked from MarseyWorld/MarseyWorld
post comment moderation tools visible permission
parent
30f3321218
commit
eeca9617bd
|
@ -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,
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue