diff options
Diffstat (limited to 'apps/dav/lib/caldav/calendar.php')
-rw-r--r-- | apps/dav/lib/caldav/calendar.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/dav/lib/caldav/calendar.php b/apps/dav/lib/caldav/calendar.php index 6d6c0b5d7a4..f3637692e43 100644 --- a/apps/dav/lib/caldav/calendar.php +++ b/apps/dav/lib/caldav/calendar.php @@ -33,7 +33,6 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { parent::__construct($caldavBackend, $calendarInfo); if ($this->getName() === BirthdayService::BIRTHDAY_CALENDAR_URI) { - $this->calendarInfo['{http://sabredav.org/ns}read-only'] = true; $this->calendarInfo['{DAV:}displayname'] = $l10n->t('Contact birthdays'); } } @@ -94,11 +93,13 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { 'principal' => $this->getOwner(), 'protected' => true, ]]; - $acl[] = [ - 'privilege' => '{DAV:}write', - 'principal' => $this->getOwner(), - 'protected' => true, - ]; + if ($this->getName() !== BirthdayService::BIRTHDAY_CALENDAR_URI) { + $acl[] = [ + 'privilege' => '{DAV:}write', + 'principal' => $this->getOwner(), + 'protected' => true, + ]; + } if ($this->getOwner() !== parent::getOwner()) { $acl[] = [ 'privilege' => '{DAV:}read', |