From 3f1f08ea3dd4e10dd769cf8b4166afa904e3833e Mon Sep 17 00:00:00 2001 From: Arnei Date: Thu, 9 Jan 2025 12:50:41 +0100 Subject: [PATCH] Remove unused warning during bulk delete This patch removes a warning in the bulk delete modal that claims the user is not authorized. Removing this for two reasons: 1. The warning claims to have done an authorization check. That check is never performed, but the warning is always displayed nonetheless. 2. Users currently cannot select events if they don't have write access on them anyway (they don't show up in the events table in the first place), so there is no need to perform such an authorization check in the first place. --- src/components/events/partials/modals/DeleteEventsModal.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/events/partials/modals/DeleteEventsModal.tsx b/src/components/events/partials/modals/DeleteEventsModal.tsx index 550655a42c..f7f931b406 100644 --- a/src/components/events/partials/modals/DeleteEventsModal.tsx +++ b/src/components/events/partials/modals/DeleteEventsModal.tsx @@ -94,10 +94,6 @@ const DeleteEventsModal = ({

{t("BULK_ACTIONS.DELETE_EVENTS_WARNING_LINE1")}

{t("BULK_ACTIONS.DELETE_EVENTS_WARNING_LINE2")}

- {/*todo: only show if scheduling Authorized*/} -
-

{t("BULK_ACTIONS.DELETE.EVENTS.UNAUTHORIZED")}

-