Merge pull request #38463 from nextcloud/fix/read-only-system-addres-book-acls-stable23

[stable23] fix(carddav): Mark system address book as read-only
This commit is contained in:
Arthur Schiwon 2023-05-25 16:01:26 +02:00 committed by GitHub
commit aad6016792
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
});
}
}