forked from rDrama/rDrama
fdfd
parent
e9a6d88a67
commit
b677bf6c2e
|
@ -29,6 +29,17 @@ def make_admin(v, username):
|
||||||
g.db.add(user)
|
g.db.add(user)
|
||||||
return "", 204
|
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")
|
@app.get("/admin/shadowbanned")
|
||||||
@auth_required
|
@auth_required
|
||||||
def shadowbanned(v):
|
def shadowbanned(v):
|
||||||
|
|
Loading…
Reference in New Issue