]> source.dussan.org Git - nextcloud-server.git/commitdiff
Default value of lookupServerEnabled should be the same everywhere 20002/head
authorGeorg Ehrke <developer@georgehrke.com>
Tue, 17 Mar 2020 09:39:59 +0000 (10:39 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 17 Mar 2020 14:10:34 +0000 (14:10 +0000)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
apps/federatedfilesharing/lib/FederatedShareProvider.php
apps/federatedfilesharing/tests/FederatedShareProviderTest.php

index 67089cba9d37cdd07af6baf392dc2c0821d03613..cc607c64bb43bfeabf053cb539dd28f971648871 100644 (file)
@@ -1043,7 +1043,7 @@ class FederatedShareProvider implements IShareProvider {
                if ($this->gsConfig->isGlobalScaleEnabled()) {
                        return true;
                }
-               $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no');
+               $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'yes');
                return ($result === 'yes');
        }
 
index 98ad8832fa164dd2c2da1fba6e8e1a02165ac122..2a060b2d412bb65102747e9966b461b4200b3052 100644 (file)
@@ -777,7 +777,7 @@ class FederatedShareProviderTest extends \Test\TestCase {
                $this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled')
                        ->willReturn($gsEnabled);
                $this->config->expects($this->any())->method('getAppValue')
-                       ->with('files_sharing', 'lookupServerEnabled', 'no')
+                       ->with('files_sharing', 'lookupServerEnabled', 'yes')
                        ->willReturn($isEnabled);
 
                $this->assertSame($expected,