Skip to content

Commit

Permalink
Revert temp assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg authored Aug 22, 2024
1 parent f0ebf0f commit da22112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Facility/FacilityHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export const FacilityHome = ({ facilityId }: Props) => {
const hasCoverImage = !!facilityData?.read_cover_image_url;

const StaffUserTypeIndex = USER_TYPES.findIndex((type) => type === "Staff");
const hasPermissionToEditCoverImage = true;
!(authUser.user_type as string).includes("ReadOnly") &&
const hasPermissionToEditCoverImage =
!(authUser.user_type as string).includes("ReadOnly") &&
USER_TYPES.findIndex((type) => type == authUser.user_type) >=
StaffUserTypeIndex;

Expand Down

0 comments on commit da22112

Please sign in to comment.