Commit 60868908 authored by HERBERT Ryan's avatar HERBERT Ryan

file.py changed access on patients list to only require read on patient or run...

file.py changed access on patients list to only require read on patient or run rather than admin. upload permission is still required
parent bc671f3b
......@@ -48,7 +48,7 @@ def add():
))
query_patient = db(
auth.vidjil_accessible_query(PermissionEnum.admin.value, db.patient)
auth.vidjil_accessible_query(PermissionEnum.read.value, db.patient)
).select(
db.patient.ALL,
orderby = ~db.patient.id
......@@ -65,7 +65,7 @@ def add():
patient = birth+name+id
query_run = db(
auth.vidjil_accessible_query(PermissionEnum.admin.value, db.run)
auth.vidjil_accessible_query(PermissionEnum.read.value, db.run)
).select(
db.run.ALL,
orderby = ~db.run.id
......
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