🐛 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:
parent
ef60524866
commit
f7755cd61d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue