Skip to content

Commit

Permalink
fix(dav): ACLs for shared addressbooks
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>

[skip ci]
  • Loading branch information
ChristophWurst authored and backportbot[bot] committed Mar 21, 2024
1 parent 191b977 commit 60cb418
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/dav/lib/CardDAV/AddressBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getACL() {
],
[
'privilege' => '{DAV:}write-properties',
'principal' => '{DAV:}authenticated',
'principal' => $this->getOwner(),
'protected' => true,
],
];
Expand All @@ -129,6 +129,11 @@ public function getACL() {
'principal' => '{DAV:}authenticated',
'protected' => true,
];
$acl[] = [
'privilege' => '{DAV:}write-properties',
'principal' => '{DAV:}authenticated',
'protected' => true,
];
}

if (!$this->isShared()) {
Expand Down

0 comments on commit 60cb418

Please sign in to comment.