mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Merge pull request #39925 from nextcloud/fix/carddav/disable-sab
This commit is contained in:
commit
b0fae951e3
1 changed files with 2 additions and 1 deletions
|
|
@ -88,7 +88,8 @@ class UserAddressBooks extends \Sabre\CardDAV\AddressBookHome {
|
|||
$addressBooks = $this->carddavBackend->getAddressBooksForUser($this->principalUri);
|
||||
// add the system address book
|
||||
$systemAddressBook = null;
|
||||
if (is_string($principal) && $principal !== 'principals/system/system' && $this->carddavBackend instanceof CardDavBackend) {
|
||||
$systemAddressBookExposed = $this->config->getAppValue('dav', 'system_addressbook_exposed', 'yes') === 'yes';
|
||||
if ($systemAddressBookExposed && is_string($principal) && $principal !== 'principals/system/system' && $this->carddavBackend instanceof CardDavBackend) {
|
||||
$systemAddressBook = $this->carddavBackend->getAddressBooksByUri('principals/system/system', 'system');
|
||||
if ($systemAddressBook !== null) {
|
||||
$systemAddressBook['uri'] = SystemAddressbook::URI_SHARED;
|
||||
|
|
|
|||
Loading…
Reference in a new issue