Commit 38330799 authored by Cervinko Cera's avatar Cervinko Cera

assign admin all rights in create_admin_user()

parent 8f4c4449
......@@ -179,7 +179,7 @@ def get_mail_settings():
def create_admin_user():
user = User()
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)
session.add(user)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment