summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/caldav/calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/caldav/calendar.php')
-rw-r--r--apps/dav/lib/caldav/calendar.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/caldav/calendar.php b/apps/dav/lib/caldav/calendar.php
index 8ed5b6563d0..6b34d570eb3 100644
--- a/apps/dav/lib/caldav/calendar.php
+++ b/apps/dav/lib/caldav/calendar.php
@@ -80,6 +80,10 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable {
}
function delete() {
+ if ($this->getName() === BirthdayService::BIRTHDAY_CALENDAR_URI) {
+ throw new Forbidden();
+ }
+
if (isset($this->calendarInfo['{http://owncloud.org/ns}owner-principal'])) {
$principal = 'principal:' . parent::getOwner();
$shares = $this->getShares();