forked from MarseyWorld/MarseyWorld
disable adding admins on WPD
parent
58912b124a
commit
649fc2414d
|
@ -159,7 +159,7 @@ LEADERBOARD_LIMIT = 25
|
|||
################################################################################
|
||||
|
||||
PERMS = { # Minimum admin_level to perform action.
|
||||
'ADMIN_ADD': 3, # note: explicitly disabled on rDrama
|
||||
'ADMIN_ADD': 3,
|
||||
'ADMIN_REMOVE': 3,
|
||||
'ADMIN_ADD_PERM_LEVEL': 2, # permission level given when user added via site
|
||||
'ADMIN_ACTIONS_REVERT': 3,
|
||||
|
@ -403,7 +403,7 @@ ANTISPAM_BYPASS_IDS = ()
|
|||
if SITE == 'rdrama.net':
|
||||
FEATURES['PRONOUNS'] = True
|
||||
FEATURES['HOUSES'] = True
|
||||
PERMS['ADMIN_ADD_PERM_LEVEL'] = 0 # extra check here to disallow adding admins on site
|
||||
PERMS['ADMIN_ADD'] = 4
|
||||
|
||||
SIDEBAR_THREAD = 37696
|
||||
BANNER_THREAD = 37697
|
||||
|
@ -486,6 +486,7 @@ elif SITE == 'watchpeopledie.tv':
|
|||
|
||||
PERMS['HOLE_CREATE'] = 2
|
||||
PERMS['POST_EDITING'] = 2
|
||||
PERMS['ADMIN_ADD'] = 4
|
||||
|
||||
SIDEBAR_THREAD = 5403
|
||||
BANNER_THREAD = 9869
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
{% macro userAdminToolsUpper(deviceType) %}
|
||||
{% if v and v.id != u.id and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %}
|
||||
{% if v.admin_level >= PERMS['ADMIN_ADD'] and SITE != 'rdrama.net' %}
|
||||
{% if v.admin_level >= PERMS['ADMIN_ADD'] %}
|
||||
<a id="add-admin-{{deviceType}}" class="{% if u.admin_level >= PERMS['ADMIN_ADD_PERM_LEVEL'] %}d-none{% endif %} btn btn-primary" onclick="post_toast(this,'/@{{u.username}}/make_admin','add-admin-{{deviceType}}','remove-admin-{{deviceType}}','d-none')">Make admin</a>
|
||||
{% endif %}
|
||||
{% if v.admin_level >= PERMS['ADMIN_REMOVE'] %}
|
||||
|
|
Loading…
Reference in New Issue