diff --git a/src/pages/Dashboard/AddEvent/AddEvent.jsx b/src/pages/Dashboard/AddEvent/AddEvent.jsx index f64f10da..91ef6cc4 100644 --- a/src/pages/Dashboard/AddEvent/AddEvent.jsx +++ b/src/pages/Dashboard/AddEvent/AddEvent.jsx @@ -1248,11 +1248,7 @@ function AddEvent() { }; const roleCheckHandler = () => { - if ( - calendar[0]?.role === userRoles.EDITOR || - calendar[0]?.role === userRoles.ADMIN || - calendar[0]?.role === userRoles.CONTRIBUTOR - ) + if ([userRoles.ADMIN, userRoles.CONTRIBUTOR, userRoles.EDITOR].includes(calendar[0]?.role) || user.isSuperAdmin) return ( <> diff --git a/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx b/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx index 08d9795e..087a77fc 100644 --- a/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx +++ b/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx @@ -498,7 +498,10 @@ function CreateNewPlace() { ]; } if (values?.containedInPlace || values?.containedInPlace?.length > 0) { - if (containedInPlace?.source === sourceOptions.CMS) + if ( + containedInPlace?.source === sourceOptions.CMS || + containedInPlace?.source === externalSourceOptions.FOOTLIGHT + ) containedInPlaceObj = { entityId: values?.containedInPlace, }; @@ -510,7 +513,7 @@ function CreateNewPlace() { if (values?.containsPlace) { containsPlace = values?.containsPlace?.map((place) => { - if (place?.source === sourceOptions.CMS) + if (place?.source === sourceOptions.CMS || place?.source === externalSourceOptions.FOOTLIGHT) return { entityId: place?.value, };