This commit is contained in:
Aevann1 2021-11-16 01:15:31 +02:00
parent e1a1b5243d
commit f72c15db2a
3 changed files with 3 additions and 3 deletions

View file

@ -144,7 +144,7 @@ def make_admin(v, username):
if 'pcm' in request.host or (SITE_NAME == 'Drama' and v.admin_level > 2) or ('rama' not in request.host and 'pcm' not in request.host):
user = get_user(username)
if not user: abort(404)
user.admin_level = 6
user.admin_level = 2
g.db.add(user)
g.db.commit()
return {"message": "User has been made admin!"}