Commit e84cc19d authored by Vidjil Team's avatar Vidjil Team
Browse files

patient.py: access 'anon' to the creator of the patient

parent 80acf419
......@@ -216,9 +216,10 @@ def add_form():
user_group = auth.user_group(auth.user.id)
admin_group = db(db.auth_group.role=='admin').select().first().id
#patient creator automaticaly have all rights
#patient creator automaticaly has all rights
auth.add_permission(user_group, 'admin', db.patient, id)
auth.add_permission(user_group, 'read', db.patient, id)
auth.add_permission(user_group, 'anon', db.patient, id)
#tmp: share rights with users of the same group
for g in auth.user_groups :
......
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