Skip to content

Commit

Permalink
Changed the show delete button function for users deletion to only be…
Browse files Browse the repository at this point in the history
… available to stateadmin level user
  • Loading branch information
xakep8 committed Nov 17, 2023
1 parent 43d08e1 commit 932cd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Facility/FacilityUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export default function FacilityUsers(props: any) {
return user.state_object?.id === authUser.state;
if (
currentUserLevel < STATE_READ_ONLY_ADMIN_LEVEL &&
currentUserLevel >= DISTRICT_ADMIN_LEVEL &&
currentUserLevel >= STATE_ADMIN_LEVEL &&
currentUserLevel > level
)
return facilityData?.district_object_id === authUser.district;
Expand Down

0 comments on commit 932cd26

Please sign in to comment.