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

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/38466/head
Christoph Wurst 1 year ago
parent d49e40b6ae
commit 3a7074bc3e
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8

@ -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