File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ public function getChildren() {
8888 $ addressBooks = $ this ->carddavBackend ->getAddressBooksForUser ($ this ->principalUri );
8989 // add the system address book
9090 $ systemAddressBook = null ;
91- if (is_string ($ principal ) && $ principal !== 'principals/system/system ' && $ this ->carddavBackend instanceof CardDavBackend) {
91+ $ systemAddressBookExposed = $ this ->config ->getAppValue ('dav ' , 'system_addressbook_exposed ' , 'yes ' ) === 'yes ' ;
92+ if ($ systemAddressBookExposed && is_string ($ principal ) && $ principal !== 'principals/system/system ' && $ this ->carddavBackend instanceof CardDavBackend) {
9293 $ systemAddressBook = $ this ->carddavBackend ->getAddressBooksByUri ('principals/system/system ' , 'system ' );
9394 if ($ systemAddressBook !== null ) {
9495 $ systemAddressBook ['uri ' ] = SystemAddressbook::URI_SHARED ;
You can’t perform that action at this time.
0 commit comments