forked from MarseyWorld/MarseyWorld
user moderation tools visible permission
parent
eeca9617bd
commit
2b51b13dcc
|
@ -137,7 +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_COMMENT_MODERATION_TOOLS_VISIBLE': 2, # note: does not affect API at all
|
||||||
'POST_EDITING': 3,
|
'POST_EDITING': 3,
|
||||||
'USER_BADGES': 2,
|
'USER_BADGES': 2,
|
||||||
'USER_BAN': 2,
|
'USER_BAN': 2,
|
||||||
|
@ -147,6 +147,7 @@ PERMS = { # Minimum admin_level to perform action.
|
||||||
'USER_LINK': 2,
|
'USER_LINK': 2,
|
||||||
'USER_MERGE': 3, # note: extra check for Aevann
|
'USER_MERGE': 3, # note: extra check for Aevann
|
||||||
'USER_TITLE_CHANGE': 2,
|
'USER_TITLE_CHANGE': 2,
|
||||||
|
'USER_MODERATION_TOOLS_VISIBLE': 2, # note: does not affect API at all
|
||||||
'POST_TO_CHANGELOG': 1, # note: code contributors can also post to changelog
|
'POST_TO_CHANGELOG': 1, # note: code contributors can also post to changelog
|
||||||
'POST_TO_POLL_THREAD': 2,
|
'POST_TO_POLL_THREAD': 2,
|
||||||
'POST_BETS': 3,
|
'POST_BETS': 3,
|
||||||
|
|
|
@ -638,7 +638,7 @@
|
||||||
<button class="btn btn-primary mt-2 mb-3" onclick="transferBux(true)">Gift</button>
|
<button class="btn btn-primary mt-2 mb-3" onclick="transferBux(true)">Gift</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if v and v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %}
|
{% if v and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %}
|
||||||
|
|
||||||
{% if FEATURES['COUNTRY_CLUB'] and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] -%}
|
{% if FEATURES['COUNTRY_CLUB'] and v.admin_level >= PERMS['USER_CLUB_ALLOW_BAN'] -%}
|
||||||
<button id="grant" class="{% if u.paid_dues %}d-none{% endif %} btn btn-success" onclick="post_toast(this,'/@{{u.username}}/club_allow','grant','bar','d-none')">Grant club access</button>
|
<button id="grant" class="{% if u.paid_dues %}d-none{% endif %} btn btn-success" onclick="post_toast(this,'/@{{u.username}}/club_allow','grant','bar','d-none')">Grant club access</button>
|
||||||
|
|
Loading…
Reference in New Issue