summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2017-06-02 10:58:43 +0200
committerGitHub <noreply@github.com>2017-06-02 10:58:43 +0200
commit74fccf20c8dfae068568a8e087c4f31c7390a8e9 (patch)
tree807e6a5ab7dce99bc9af3277ac7fd9051e161d38 /settings
parentc70de161cf2626f7830915753eabfbc364115373 (diff)
parent7c2d473d7686f4824d3b7f05238d262e26d5efa2 (diff)
downloadnextcloud-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.php10
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