fix(carddav): Mark system address book as read-only

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-05-08 19:41:06 +02:00
parent d49e40b6ae
commit 3a7074bc3e
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8

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