fdfd
This commit is contained in:
parent
3e19ed0831
commit
b3e5274f0c
1 changed files with 11 additions and 0 deletions
|
@ -29,6 +29,17 @@ def make_admin(v, username):
|
|||
g.db.add(user)
|
||||
return "", 204
|
||||
|
||||
|
||||
@app.post("/@<username>/remove_admin")
|
||||
@admin_level_required(6)
|
||||
def remove_admin(v, username):
|
||||
user = get_user(username)
|
||||
if not user: abort(404)
|
||||
user.admin_level = 0
|
||||
g.db.add(user)
|
||||
return "", 204
|
||||
|
||||
|
||||
@app.get("/admin/shadowbanned")
|
||||
@auth_required
|
||||
def shadowbanned(v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue