From da221124683dc489269ea08b37e83da928ac1755 Mon Sep 17 00:00:00 2001 From: Gigin George Date: Thu, 22 Aug 2024 22:17:52 +0530 Subject: [PATCH] Revert temp assignment --- src/Components/Facility/FacilityHome.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Facility/FacilityHome.tsx b/src/Components/Facility/FacilityHome.tsx index e88e5f3a837..51f17d1263a 100644 --- a/src/Components/Facility/FacilityHome.tsx +++ b/src/Components/Facility/FacilityHome.tsx @@ -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;