mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
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:
commit
aad6016792
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Reference in a new issue