allow users to send PropPatch request when calendar is group-shared with them

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
pull/5300/head
Georg Ehrke 9 years ago
parent a74901fce1
commit 0f1d47cdf3
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
  1. 6
      apps/dav/lib/CalDAV/Calendar.php
  2. 6
      apps/dav/tests/unit/CalDAV/CalendarTest.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()) {

@ -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);

Loading…
Cancel
Save