Merge pull request #38464 from nextcloud/fix/read-only-system-addres-book-acls-stable22

[stable22] fix(carddav): Mark system address book as read-only
pull/38536/head
Arthur Schiwon 1 year ago committed by GitHub
commit 86bd13b2c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,4 +50,13 @@ class SystemAddressbook extends AddressBook {
return parent::getChildren();
}
public function getACL() {
return array_filter(parent::getACL(), function($acl) {
if (in_array($acl['privilege'], ['{DAV:}write', '{DAV:}all'], true)) {
return false;
}
return true;
});
}
}

Loading…
Cancel
Save