apparently this thing likes to commit without committing half of it ok

master
justcool393 2022-10-05 21:03:40 -07:00
parent 976f1808c3
commit 44bf01151f
2 changed files with 2 additions and 1 deletions

View File

@ -153,6 +153,7 @@ PERMS = { # Minimum admin_level to perform action.
'ADMIN_ADD': 3, # note: explicitly disabled on rDrama
'ADMIN_REMOVE': 3,
'ADMIN_ADD_PERM_LEVEL': 2, # permission level given when user added via site
'ADMIN_ACTIONS_REVERT': 3,
}
FEATURES = {

View File

@ -249,7 +249,7 @@ def distribute(v, option_id):
@app.post("/@<username>/revert_actions")
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@admin_level_required(3)
@admin_level_required(PERMS['ADMIN_ACTIONS_REVERT'])
def revert_actions(v, username):
user = get_user(username)