master
Aevann1 2021-07-22 20:23:04 +02:00
parent 9a45091f2a
commit 7262f83c9e
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ beams_client = PushNotifications(
@app.route("/banaward/<user_id>", methods=["POST"])
@auth_required
def ban_user(user_id, v):
def banaward(user_id, v):
if v.banawards != 1 and v.banawards != 2: abort(403)
user = g.db.query(User).filter_by(id=user_id).first()