diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-10 16:24:26 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-11 21:58:09 +0100 |
commit | 92c48d0394d2f733398d73db9017b715e00cf998 (patch) | |
tree | 313593dbf2fa76006404c8d896d372669419dc94 /lib | |
parent | e674631f9b310e9b3a39ed4979b93c2d545b6348 (diff) | |
download | nextcloud-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.php | 6 |
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; } |