allow users to send PropPatch request when calendar is group-shared with them
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
a74901fce1
commit
0f1d47cdf3
|
@ -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…
Reference in New Issue