This commit is contained in:
Aevann1 2021-09-19 15:01:28 +02:00
parent 0c83fa44e3
commit 7a9dbe5fd4

View file

@ -843,7 +843,6 @@ def admin_title_change(user_id, v):
@validate_formkey
def ban_user(user_id, v):
print("sex")
user = g.db.query(User).options(lazyload('*')).filter_by(id=user_id).first()
if user.admin_level >= v.admin_level: abort(403)