mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
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:
@ -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()
|
||||
|
Reference in New Issue
Block a user