From 403cfbd679aa8d8c55f666b1ae9513b13ee3632a Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 9 Apr 2016 21:39:28 +0200 Subject: [PATCH] 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. --- server/szurubooru/util/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/util/users.py b/server/szurubooru/util/users.py index 0c65304..7b7d52f 100644 --- a/server/szurubooru/util/users.py +++ b/server/szurubooru/util/users.py @@ -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()