server/users: fix first user's rank
It was set to the latest (== most capable) rank from the config which is... "nobody", that is supposed to be unattainable.
This commit is contained in:
parent
05e4a1b977
commit
403cfbd679
|
@ -11,7 +11,7 @@ def create_user(session, name, password, email):
|
|||
update_password(user, password)
|
||||
update_email(user, email)
|
||||
if not session.query(db.User).count():
|
||||
user.rank = config.config['ranks'][-1]
|
||||
user.rank = 'admin'
|
||||
else:
|
||||
user.rank = config.config['default_rank']
|
||||
user.creation_time = datetime.now()
|
||||
|
|
Loading…
Reference in New Issue