mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Default value of lookupServerEnabled should be the same everywhere
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
ef515358ef
commit
8143cf5fa3
2 changed files with 2 additions and 2 deletions
|
|
@ -1046,7 +1046,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');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -778,7 +778,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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue