forked from MarseyWorld/MarseyWorld
club permissions
parent
4aef026594
commit
65c75ba5da
|
@ -133,6 +133,7 @@ PERMS = { # Minimum admin_level to perform action.
|
|||
'USER_BAN': 2,
|
||||
'USER_SHADOWBAN': 2,
|
||||
'USER_AGENDAPOSTER': 2,
|
||||
'USER_CLUB_ALLOW_BAN': 2,
|
||||
'POST_TO_CHANGELOG': 1,
|
||||
'BYPASS_PIN_LIMIT': 3,
|
||||
'VIEW_PENDING_SUBMITTED_MARSEYS': 3,
|
||||
|
@ -240,6 +241,7 @@ GIFT_NOTIF_ID = 5
|
|||
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
|
||||
|
||||
SIDEBAR_THREAD = 37696
|
||||
BANNER_THREAD = 37697
|
||||
|
|
|
@ -299,7 +299,7 @@ def revert_actions(v, username):
|
|||
|
||||
@app.post("/@<username>/club_allow")
|
||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
@admin_level_required(2)
|
||||
@admin_level_required(PERMS['USER_CLUB_ALLOW_BAN'])
|
||||
def club_allow(v, username):
|
||||
u = get_user(username, v=v)
|
||||
|
||||
|
@ -323,7 +323,7 @@ def club_allow(v, username):
|
|||
|
||||
@app.post("/@<username>/club_ban")
|
||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
@admin_level_required(2)
|
||||
@admin_level_required(PERMS['USER_CLUB_ALLOW_BAN'])
|
||||
def club_ban(v, username):
|
||||
u = get_user(username, v=v)
|
||||
|
||||
|
|
Loading…
Reference in New Issue