forked from MarseyWorld/MarseyWorld
apparently this thing likes to commit without committing half of it ok
parent
976f1808c3
commit
44bf01151f
|
@ -153,6 +153,7 @@ PERMS = { # Minimum admin_level to perform action.
|
||||||
'ADMIN_ADD': 3, # note: explicitly disabled on rDrama
|
'ADMIN_ADD': 3, # note: explicitly disabled on rDrama
|
||||||
'ADMIN_REMOVE': 3,
|
'ADMIN_REMOVE': 3,
|
||||||
'ADMIN_ADD_PERM_LEVEL': 2, # permission level given when user added via site
|
'ADMIN_ADD_PERM_LEVEL': 2, # permission level given when user added via site
|
||||||
|
'ADMIN_ACTIONS_REVERT': 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
FEATURES = {
|
FEATURES = {
|
||||||
|
|
|
@ -249,7 +249,7 @@ def distribute(v, option_id):
|
||||||
|
|
||||||
@app.post("/@<username>/revert_actions")
|
@app.post("/@<username>/revert_actions")
|
||||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
@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):
|
def revert_actions(v, username):
|
||||||
user = get_user(username)
|
user = get_user(username)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue