summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-03-10 16:24:26 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2025-03-11 21:58:09 +0100
commit92c48d0394d2f733398d73db9017b715e00cf998 (patch)
tree313593dbf2fa76006404c8d896d372669419dc94 /lib
parente674631f9b310e9b3a39ed4979b93c2d545b6348 (diff)
downloadnextcloud-server-92c48d0394d2f733398d73db9017b715e00cf998.tar.gz
nextcloud-server-92c48d0394d2f733398d73db9017b715e00cf998.zip
fix(lookup-server): disable lookup server for non-global scale setups
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index 62cd7b9f2c9..bffc064c017 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -57,8 +57,10 @@ class LookupPlugin implements ISearchPlugin {
$isLookupServerEnabled = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no') === 'yes';
$hasInternetConnection = $this->config->getSystemValueBool('has_internet_connection', true);
- // if case of Global Scale we always search the lookup server
- if (!$isGlobalScaleEnabled && (!$isLookupServerEnabled || !$hasInternetConnection)) {
+ // If case of Global Scale we always search the lookup server
+ // TODO: Reconsider using the lookup server for non-global scale
+ // if (!$isGlobalScaleEnabled && (!$isLookupServerEnabled || !$hasInternetConnection || $disableLookupServer)) {
+ if (!$isGlobalScaleEnabled) {
return false;
}