From 22528d1d133e630d80da704c6d9f21c90ee7e775 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 21 Feb 2019 12:56:10 +0100 Subject: [PATCH] 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 --- lib/private/Collaboration/Collaborators/LookupPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php index fb7c872c30..afb9da05ce 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; }