Commit 854cd010 authored by HERBERT Ryan's avatar HERBERT Ryan

Add more default permissions to admin user to ensure access is granted to...

Add more default permissions to admin user to ensure access is granted to admins with the new permissions
parent 6d28e261
......@@ -85,6 +85,11 @@ def init_db(force=False):
## permission
## system admin have admin/read/create rights on all patients, groups and configs
auth.add_permission(id_admin_group, PermissionEnum.access.value, db.sample_set, 0)
auth.add_permission(id_admin_group, PermissionEnum.access.value, db.patient, 0)
auth.add_permission(id_admin_group, PermissionEnum.access.value, db.run, 0)
auth.add_permission(id_admin_group, PermissionEnum.access.value, db.config, 0)
auth.add_permission(id_admin_group, PermissionEnum.access.value, db.auth_group, 0)
auth.add_permission(id_admin_group, PermissionEnum.admin.value, db.sample_set, 0)
auth.add_permission(id_admin_group, PermissionEnum.admin_group.value, db.auth_group, 0)
auth.add_permission(id_admin_group, PermissionEnum.admin_config.value, db.config, 0)
......
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