diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Calendar.php | 6 | ||||
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CalendarTest.php | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php index 9c56398b14c..9f4e30710ec 100644 --- a/apps/dav/lib/CalDAV/Calendar.php +++ b/apps/dav/lib/CalDAV/Calendar.php @@ -135,6 +135,12 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { 'principal' => parent::getOwner(), 'protected' => true, ]; + } else { + $acl[] = [ + 'privilege' => '{DAV:}write-properties', + 'principal' => parent::getOwner(), + 'protected' => true, + ]; } } if ($this->isPublic()) { diff --git a/apps/dav/tests/unit/CalDAV/CalendarTest.php b/apps/dav/tests/unit/CalDAV/CalendarTest.php index cf295f01065..51ae6cd37c2 100644 --- a/apps/dav/tests/unit/CalDAV/CalendarTest.php +++ b/apps/dav/tests/unit/CalDAV/CalendarTest.php @@ -205,6 +205,12 @@ class CalendarTest extends TestCase { 'principal' => 'user2', 'protected' => true ]; + } else { + $expectedAcl[] = [ + 'privilege' => '{DAV:}write-properties', + 'principal' => 'user2', + 'protected' => true + ]; } } $this->assertEquals($expectedAcl, $acl); |