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

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

@ -51,4 +51,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