diff --git a/apps/dav/lib/CalDAV/CalendarImpl.php b/apps/dav/lib/CalDAV/CalendarImpl.php index 4eef1e7f8d30e..53cde5a7b75e9 100644 --- a/apps/dav/lib/CalDAV/CalendarImpl.php +++ b/apps/dav/lib/CalDAV/CalendarImpl.php @@ -130,6 +130,13 @@ public function getPermissions(): int { return $result; } + /** + * @since 26.0.0 + */ + public function isDeleted(): bool { + return $this->calendar->isDeleted(); + } + /** * Create a new calendar event for this calendar * by way of an ICS string diff --git a/lib/public/Calendar/ICalendar.php b/lib/public/Calendar/ICalendar.php index f1f2d5eb6f1ab..e1644ca82aaee 100644 --- a/lib/public/Calendar/ICalendar.php +++ b/lib/public/Calendar/ICalendar.php @@ -75,4 +75,10 @@ public function search(string $pattern, array $searchProperties = [], array $opt * @since 13.0.0 */ public function getPermissions(): int; + + /** + * Whether the calendar is deleted + * @since 26.0.0 + */ + public function isDeleted(): bool; }