1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 04:19:59 +00:00

assign admin all rights in create_admin_user()

This commit is contained in:
Cervinko Cera 2016-04-27 19:50:04 +02:00
parent 8f4c444929
commit 3833079973

View File

@ -179,7 +179,7 @@ def get_mail_settings():
def create_admin_user(): def create_admin_user():
user = User() user = User()
user.nickname = "admin" user.nickname = "admin"
user.role = 1 user.role = ROLE_USER + ROLE_ADMIN + ROLE_DOWNLOAD + ROLE_UPLOAD + ROLE_EDIT + ROLE_PASSWD
user.password = generate_password_hash(DEFAULT_PASS) user.password = generate_password_hash(DEFAULT_PASS)
session.add(user) session.add(user)