summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Collaborators
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-21 12:56:10 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-21 12:56:10 +0100
commit22528d1d133e630d80da704c6d9f21c90ee7e775 (patch)
tree6f35626e84d20ebfb75cce372c528626f64055a1 /lib/private/Collaboration/Collaborators
parent10388eab342a46e034eb6bfb89fbfd232d8ec2a5 (diff)
downloadnextcloud-server-22528d1d133e630d80da704c6d9f21c90ee7e775.tar.gz
nextcloud-server-22528d1d133e630d80da704c6d9f21c90ee7e775.zip
Always query lookup server in GS mode
Without the lookupserver GS is kind of useless. If the admin places their lookup sever outside of the reachable network that is not something we can help. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Collaboration/Collaborators')
-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;
}