diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-02-22 17:59:20 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-03-21 11:50:35 +0100 |
commit | b6e1685683f51ddb8da7b4a5767985ac287fa3ee (patch) | |
tree | bdb069a49c62c19755e8bbf48c3f62314268219d /apps/dav/lib/CardDAV | |
parent | 03f269829f4597a3c258da38b1a0b5b2214acefa (diff) | |
download | nextcloud-server-b6e1685683f51ddb8da7b4a5767985ac287fa3ee.tar.gz nextcloud-server-b6e1685683f51ddb8da7b4a5767985ac287fa3ee.zip |
fix(dav): ACLs for shared addressbooks
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/CardDAV')
-rw-r--r-- | apps/dav/lib/CardDAV/AddressBook.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/AddressBook.php b/apps/dav/lib/CardDAV/AddressBook.php index 468961b958e..4f589031f06 100644 --- a/apps/dav/lib/CardDAV/AddressBook.php +++ b/apps/dav/lib/CardDAV/AddressBook.php @@ -118,7 +118,7 @@ class AddressBook extends \Sabre\CardDAV\AddressBook implements IShareable, IMov ], [ 'privilege' => '{DAV:}write-properties', - 'principal' => '{DAV:}authenticated', + 'principal' => $this->getOwner(), 'protected' => true, ], ]; @@ -129,6 +129,11 @@ class AddressBook extends \Sabre\CardDAV\AddressBook implements IShareable, IMov 'principal' => '{DAV:}authenticated', 'protected' => true, ]; + $acl[] = [ + 'privilege' => '{DAV:}write-properties', + 'principal' => '{DAV:}authenticated', + 'protected' => true, + ]; } if (!$this->isShared()) { |