diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-06-13 18:11:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-13 18:11:13 -0500 |
commit | f38f2baa5ae4a65e7a71b9c8c96c94c1c1ee3e35 (patch) | |
tree | 9ffe3020c1c9d3306322cbf116a8fe90a7a88099 /apps | |
parent | 0b92700b52a95162bde1ac685bc2d6ef4b217cd3 (diff) | |
parent | 9563c25c694885fc94a4cfb2f10db72efcd532c8 (diff) | |
download | nextcloud-server-f38f2baa5ae4a65e7a71b9c8c96c94c1c1ee3e35.tar.gz nextcloud-server-f38f2baa5ae4a65e7a71b9c8c96c94c1c1ee3e35.zip |
Merge pull request #5295 from nextcloud/bugfix/5077/allow_proppatches_to_birthday_calendar
allow PropPatch requests to contact_birthdays
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Calendar.php | 7 | ||||
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CalendarTest.php | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php index 9c56398b14c..c03bf98ee38 100644 --- a/apps/dav/lib/CalDAV/Calendar.php +++ b/apps/dav/lib/CalDAV/Calendar.php @@ -122,7 +122,14 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { 'principal' => $this->getOwner(), 'protected' => true, ]; + } else { + $acl[] = [ + 'privilege' => '{DAV:}write-properties', + 'principal' => $this->getOwner(), + 'protected' => true, + ]; } + if ($this->getOwner() !== parent::getOwner()) { $acl[] = [ 'privilege' => '{DAV:}read', diff --git a/apps/dav/tests/unit/CalDAV/CalendarTest.php b/apps/dav/tests/unit/CalDAV/CalendarTest.php index cf295f01065..fd74da0214b 100644 --- a/apps/dav/tests/unit/CalDAV/CalendarTest.php +++ b/apps/dav/tests/unit/CalDAV/CalendarTest.php @@ -191,6 +191,10 @@ class CalendarTest extends TestCase { 'privilege' => '{DAV:}read', 'principal' => $hasOwnerSet ? 'user1' : 'user2', 'protected' => true + ], [ + 'privilege' => '{DAV:}write-properties', + 'principal' => $hasOwnerSet ? 'user1' : 'user2', + 'protected' => true ]]; } if ($hasOwnerSet) { |