fds
This commit is contained in:
parent
06d2eac10a
commit
c607b17a88
1 changed files with 1 additions and 0 deletions
|
@ -843,6 +843,7 @@ 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue