Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-02-25 13:41:26 +0300
committerGitHub <noreply@github.com>2019-02-25 13:41:26 +0300
commit5d247b5da60bb379b37c9243dd7a0e11e388c5bc (patch)
treed9aa89f5ea9bc24aa6fc5db76197f241bdd00c08
parenta7b322bd65c8a13ee59c1271828d3b6c2d669654 (diff)
parent8ea0e721ed9a5170be2575bd2222ef9508bae601 (diff)
Merge pull request #14368 from nextcloud/backport/14325/stable15
[stable15] Always query lookup server in GS mode
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index fb7c872c30c..afb9da05ce3 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -66,7 +66,7 @@ class LookupPlugin implements ISearchPlugin {
$hasInternetConnection = (bool)$this->config->getSystemValue('has_internet_connection', true);
// if case of Global Scale we always search the lookup server
- if ((!$isLookupServerEnabled && !$isGlobalScaleEnabled) || !$hasInternetConnection) {
+ if (!$isGlobalScaleEnabled && (!$isLookupServerEnabled || !$hasInternetConnection)) {
return false;
}