Commit b1e5250b authored by Marc Duez's avatar Marc Duez
Browse files

patient.py : debug, check anon right for all group (not only user_group)

parent 44dd67d9
......@@ -370,7 +370,9 @@ def index():
(db.auth_permission.name == "anon") &
(db.auth_permission.table_name == "patient") &
(db.patient.id == db.auth_permission.record_id ) &
(auth.user_group() == db.auth_permission.group_id )
(db.auth_group.id == db.auth_permission.group_id ) &
(db.auth_membership.user_id == auth.user_id) &
(db.auth_membership.group_id == db.auth_group.id)
).select(
db.patient.id, db.patient.last_name, db.patient.first_name
)
......
Supports Markdown
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