mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Only search in active address books. Fix #424
This commit is contained in:
parent
a5662ef938
commit
865d6e2e97
@ -61,8 +61,8 @@ if(\OCP\User::isLoggedIn()) {
|
||||
$app = new App($api->getUserId());
|
||||
$addressBooks = $app->getAddressBooksForUser();
|
||||
foreach($addressBooks as $addressBook) {
|
||||
//if($addressBook->getBackend()->name === 'local') {
|
||||
if($addressBook->isActive()) {
|
||||
\OCP\Contacts::registerAddressBook(new AddressbookProvider($addressBook));
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user