master
Aevann1 2021-11-23 02:09:11 +02:00
parent 119c547dc6
commit 4ef8421538
1 changed files with 9 additions and 1 deletions

View File

@ -196,7 +196,15 @@ def log(v):
admins = [x[0] for x in g.db.query(User.username).filter(User.admin_level > 1).all()]
return render_template("log.html", v=v, admins=admins, types=ACTIONTYPES, admin=admin, type=kind, actions=actions, next_exists=next_exists, page=page)
types = ACTIONTYPES
if not (v and v.admin_level):
del types["shadowban"]
del types["unshadowban"]
del types["club"]
del types["unclub"]
del types["check"]
return render_template("log.html", v=v, admins=admins, types=types, admin=admin, type=kind, actions=actions, next_exists=next_exists, page=page)
@app.get("/log/<id>")
@auth_desired