Skip to content

Commit

Permalink
Fixes:Gives access of consultation details to users for only allowed …
Browse files Browse the repository at this point in the history
…facilities.
  • Loading branch information
Sulochan-khadka committed Oct 21, 2024
1 parent 1962290 commit 892914e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Components/Facility/ConsultationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ export const ConsultationCard = (props: ConsultationProps) => {
);
}
}}
disabled={!!itemData.discharge_date}
disabled={
!!itemData.discharge_date ||
!facilities?.some(
(item) => item.name === itemData.facility_name,
)
}
authorizeFor={NonReadOnlyUsers}
>
Add Consultation Updates
Expand Down

0 comments on commit 892914e

Please sign in to comment.