🐛 fix: cannot decline invitation for shared calendar

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.
This commit is contained in:
Marc Koch 2025-07-15 13:03:42 +02:00
parent ef60524866
commit f7755cd61d
Signed by: marc
GPG Key ID: 12406554CFB028B9
1 changed files with 0 additions and 1 deletions

View File

@ -189,7 +189,6 @@ def clear(target_calendars: list, is_test: bool=False) -> dict:
# we need to cancel it now # we need to cancel it now
elif not event.is_cancelled: elif not event.is_cancelled:
if not is_test: if not is_test:
event.obj.decline_invite()
event.obj.icalendar_component["status"] = "CANCELLED" event.obj.icalendar_component["status"] = "CANCELLED"
event.obj.save() event.obj.save()
is_cancelled = True is_cancelled = True