From f7755cd61d366aca65df50729d5c42763ee6f0d7 Mon Sep 17 00:00:00 2001 From: Marc Koch Date: Tue, 15 Jul 2025 13:03:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20cannot=20decline=20invita?= =?UTF-8?q?tion=20for=20shared=20calendar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the principal of the calendar does not own it, because it is a shared calendar, invitations cannot be declined because the principal is not invited. This fix causes the appointment to be canceled in the calendar instead. --- src/clear_bookings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/clear_bookings.py b/src/clear_bookings.py index b3566db..b12780c 100644 --- a/src/clear_bookings.py +++ b/src/clear_bookings.py @@ -189,7 +189,6 @@ def clear(target_calendars: list, is_test: bool=False) -> dict: # we need to cancel it now elif not event.is_cancelled: if not is_test: - event.obj.decline_invite() event.obj.icalendar_component["status"] = "CANCELLED" event.obj.save() is_cancelled = True