From d9082bbce1ff31bc6ace6c227ee0484c8fbffd3a Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Fri, 12 Jan 2024 19:50:58 +0530 Subject: [PATCH] fixes #7017; Show feed for Nurse and NurseReadOnly --- .../Facility/ConsultationDetails/index.tsx | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index c6cc9e02275..2faf348da14 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -299,9 +299,13 @@ export const ConsultationDetails = (props: any) => { {patientData.last_consultation?.id && isCameraAttached && - ["DistrictAdmin", "StateAdmin", "Doctor"].includes( - authUser.user_type - ) && ( + [ + "DistrictAdmin", + "StateAdmin", + "Doctor", + "Nurse", + "NurseReadOnly", + ].includes(authUser.user_type) && ( { isCameraAttached === false || // No camera attached consultationData?.discharge_date || // Discharged !consultationData?.current_bed?.bed_object?.id || // Not admitted to bed - !["DistrictAdmin", "StateAdmin", "Doctor"].includes( - authUser.user_type - ) // Not admin or doctor + ![ + "DistrictAdmin", + "StateAdmin", + "Doctor", + "Nurse", + "NurseReadOnly", + ].includes(authUser.user_type) // Not admin or doctor ) return null; // Hide feed tab }