Bugfix delegation (#585)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2026-02-26 18:15:55 +01:00
committed by GitHub
parent 5ec37608f1
commit 62f54c3707
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -76,13 +76,12 @@ function EventUpdateModal({
const user = useAppSelector((state) => state.user);
// if the event's calendar is delegated then it shall be the only calendar accessible from the event update modal
const userPersonalCalendars: Calendar[] = useMemo(() => {
const allCalendars = Object.values(calList) as Calendar[];
return allCalendars.filter(
(calendar: Calendar) =>
calendar.id?.split("/")[0] === user.userData?.openpaasId ||
calendar.delegated
(calendar.delegated && calendar.access?.write)
);
}, [calList, user.userData?.openpaasId]);