From 736f7011a74d717d2f480560024e7c50d9116708 Mon Sep 17 00:00:00 2001 From: Denis Durepos Date: Fri, 22 Aug 2025 06:03:49 -0400 Subject: [PATCH] Corrected access error for coaches attempting to view the patient record for a patient that was also on teams the coach did not have access to. --- .../security/sports_clinic_portal_rules.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bemade_sports_clinic/security/sports_clinic_portal_rules.xml b/bemade_sports_clinic/security/sports_clinic_portal_rules.xml index 44bdc53..938ba93 100644 --- a/bemade_sports_clinic/security/sports_clinic_portal_rules.xml +++ b/bemade_sports_clinic/security/sports_clinic_portal_rules.xml @@ -73,6 +73,18 @@ [(1, '=', 1)] + + + Portal Team Coach Read Teams via Shared Patients + + + + + + + [('patient_ids', 'in', user.partner_id.team_staff_rel_ids.mapped('team_id.patient_ids.id') or [0])] + + Portal Access to Injury Documents