diff options
author | Björn Schießle <bjoern@schiessle.org> | 2017-06-02 10:58:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-02 10:58:43 +0200 |
commit | 74fccf20c8dfae068568a8e087c4f31c7390a8e9 (patch) | |
tree | 807e6a5ab7dce99bc9af3277ac7fd9051e161d38 /settings | |
parent | c70de161cf2626f7830915753eabfbc364115373 (diff) | |
parent | 7c2d473d7686f4824d3b7f05238d262e26d5efa2 (diff) | |
download | nextcloud-server-74fccf20c8dfae068568a8e087c4f31c7390a8e9.tar.gz nextcloud-server-74fccf20c8dfae068568a8e087c4f31c7390a8e9.zip |
Merge pull request #5084 from nextcloud/useful-gs-settings
add new config switched for the global scale architecture
Diffstat (limited to 'settings')
-rw-r--r-- | settings/personal.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/settings/personal.php b/settings/personal.php index 86ac4f753f4..d2b4801e686 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -212,8 +212,14 @@ $tmpl->assign('certs', $certificateManager->listCertificates()); $tmpl->assign('showCertificates', $enableCertImport); $tmpl->assign('urlGenerator', $urlGenerator); -$lookupServerUploadEnabled = $config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes'); -$lookupServerUploadEnabled = $lookupServerUploadEnabled === 'yes'; +$federatedFileSharingEnabled = \OC::$server->getAppManager()->isEnabledForUser('federatedfilesharing'); +$lookupServerUploadEnabled = false; +if ($federatedFileSharingEnabled) { + $federatedFileSharing = new \OCA\FederatedFileSharing\AppInfo\Application(); + $shareProvider = $federatedFileSharing->getFederatedShareProvider(); + $lookupServerUploadEnabled = $shareProvider->isLookupServerUploadEnabled(); +} + $tmpl->assign('lookupServerUploadEnabled', $lookupServerUploadEnabled); // Get array of group ids for this user |