]> source.dussan.org Git - nextcloud-server.git/commitdiff
Always query lookup server in GS mode 14325/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 21 Feb 2019 11:56:10 +0000 (12:56 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 21 Feb 2019 11:56:10 +0000 (12:56 +0100)
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>
lib/private/Collaboration/Collaborators/LookupPlugin.php

index fb7c872c30c6d733048127e477eb9c16da3d0b01..afb9da05ce39262c509c2ab425043c0c4ee11c0a 100644 (file)
@@ -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;
                }