diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-21 13:36:52 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-21 13:36:52 +0200 |
commit | 1d1247069f3d36dca0e54a71295ee1626e342fab (patch) | |
tree | cd9ecb969d0bd62014271823df69abb44a85d5b5 /apps/dav/lib | |
parent | e673ff0f330425ac37697e2ce2f262888289b406 (diff) | |
download | nextcloud-server-1d1247069f3d36dca0e54a71295ee1626e342fab.tar.gz nextcloud-server-1d1247069f3d36dca0e54a71295ee1626e342fab.zip |
Birthday calendar should never have write acl - fixes #24154
Diffstat (limited to 'apps/dav/lib')
-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', |