Skip to content

Commit 60cb418

Browse files
ChristophWurstbackportbot[bot]
authored andcommitted
fix(dav): ACLs for shared addressbooks
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> [skip ci]
1 parent 191b977 commit 60cb418

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/dav/lib/CardDAV/AddressBook.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function getACL() {
118118
],
119119
[
120120
'privilege' => '{DAV:}write-properties',
121-
'principal' => '{DAV:}authenticated',
121+
'principal' => $this->getOwner(),
122122
'protected' => true,
123123
],
124124
];
@@ -129,6 +129,11 @@ public function getACL() {
129129
'principal' => '{DAV:}authenticated',
130130
'protected' => true,
131131
];
132+
$acl[] = [
133+
'privilege' => '{DAV:}write-properties',
134+
'principal' => '{DAV:}authenticated',
135+
'protected' => true,
136+
];
132137
}
133138

134139
if (!$this->isShared()) {

0 commit comments

Comments
 (0)