diff --git a/lib/Service/CalendarService.php b/lib/Service/CalendarService.php index 3a1a16c056..9bad776092 100644 --- a/lib/Service/CalendarService.php +++ b/lib/Service/CalendarService.php @@ -53,6 +53,9 @@ private function getCalendarsForPrincipal(): void { if (!empty($principalUri)) { $this->calendars = $this->calendarManager->getCalendarsForPrincipal($principalUri); + $this->calendars = array_filter($this->calendars, function ($item) { + return !$item->isDeleted(); + }); } else { $this->calendars = []; }