Merge pull request #5301 from nextcloud/bugfix-stable12/noid/fix_proppatch_requests_to_groupshares
[stable12] allow users to send PropPatch request when calendar is group-shared with them
This commit is contained in:
commit
aeb80e0f57
|
@ -142,6 +142,12 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable {
|
||||||
'principal' => parent::getOwner(),
|
'principal' => parent::getOwner(),
|
||||||
'protected' => true,
|
'protected' => true,
|
||||||
];
|
];
|
||||||
|
} else {
|
||||||
|
$acl[] = [
|
||||||
|
'privilege' => '{DAV:}write-properties',
|
||||||
|
'principal' => parent::getOwner(),
|
||||||
|
'protected' => true,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($this->isPublic()) {
|
if ($this->isPublic()) {
|
||||||
|
|
|
@ -209,6 +209,12 @@ class CalendarTest extends TestCase {
|
||||||
'principal' => 'user2',
|
'principal' => 'user2',
|
||||||
'protected' => true
|
'protected' => true
|
||||||
];
|
];
|
||||||
|
} else {
|
||||||
|
$expectedAcl[] = [
|
||||||
|
'privilege' => '{DAV:}write-properties',
|
||||||
|
'principal' => 'user2',
|
||||||
|
'protected' => true
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->assertEquals($expectedAcl, $acl);
|
$this->assertEquals($expectedAcl, $acl);
|
||||||
|
|
Loading…
Reference in New Issue