Merge pull request #5296 from nextcloud/bugfix-stable12/5077/allow_proppatches_to_birthday_calendar
[stable12] allow PropPatch requests to contact_birthdays
This commit is contained in:
commit
1d2c1cf579
|
@ -122,7 +122,14 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable {
|
||||||
'principal' => $this->getOwner(),
|
'principal' => $this->getOwner(),
|
||||||
'protected' => true,
|
'protected' => true,
|
||||||
];
|
];
|
||||||
|
} else {
|
||||||
|
$acl[] = [
|
||||||
|
'privilege' => '{DAV:}write-properties',
|
||||||
|
'principal' => $this->getOwner(),
|
||||||
|
'protected' => true,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->getOwner() !== parent::getOwner()) {
|
if ($this->getOwner() !== parent::getOwner()) {
|
||||||
$acl[] = [
|
$acl[] = [
|
||||||
'privilege' => '{DAV:}read',
|
'privilege' => '{DAV:}read',
|
||||||
|
|
|
@ -191,6 +191,10 @@ class CalendarTest extends TestCase {
|
||||||
'privilege' => '{DAV:}read',
|
'privilege' => '{DAV:}read',
|
||||||
'principal' => $hasOwnerSet ? 'user1' : 'user2',
|
'principal' => $hasOwnerSet ? 'user1' : 'user2',
|
||||||
'protected' => true
|
'protected' => true
|
||||||
|
], [
|
||||||
|
'privilege' => '{DAV:}write-properties',
|
||||||
|
'principal' => $hasOwnerSet ? 'user1' : 'user2',
|
||||||
|
'protected' => true
|
||||||
]];
|
]];
|
||||||
}
|
}
|
||||||
if ($hasOwnerSet) {
|
if ($hasOwnerSet) {
|
||||||
|
|
Loading…
Reference in New Issue