summaryrefslogtreecommitdiffstats
path: root/apps/files_external/settings.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-03 18:29:24 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-04 14:57:17 +0100
commit9dfe9f77f294a00b65e7f93afc336df17dc221c9 (patch)
treef0ec873d4f9e2c42e3029073d8bc6484f6f97ba5 /apps/files_external/settings.php
parent899444103a30a157a2112ca7389e9b047256b72d (diff)
downloadnextcloud-server-9dfe9f77f294a00b65e7f93afc336df17dc221c9.tar.gz
nextcloud-server-9dfe9f77f294a00b65e7f93afc336df17dc221c9.zip
Add global auth backend for files external
Diffstat (limited to 'apps/files_external/settings.php')
-rw-r--r--apps/files_external/settings.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/settings.php b/apps/files_external/settings.php
index 0d83d26ff97..a5265c500d9 100644
--- a/apps/files_external/settings.php
+++ b/apps/files_external/settings.php
@@ -32,6 +32,7 @@ use \OCA\Files_External\Service\BackendService;
$appContainer = \OC_Mount_Config::$app->getContainer();
$backendService = $appContainer->query('OCA\Files_External\Service\BackendService');
$globalStoragesService = $appContainer->query('OCA\Files_external\Service\GlobalStoragesService');
+$globalAuth = $appContainer->query('OCA\Files_External\Lib\Auth\Password\GlobalAuth');
\OC_Util::addVendorScript('select2/select2');
\OC_Util::addVendorStyle('select2/select2');
@@ -44,4 +45,7 @@ $tmpl->assign('backends', $backendService->getAvailableBackends());
$tmpl->assign('authMechanisms', $backendService->getAuthMechanisms());
$tmpl->assign('dependencies', OC_Mount_Config::dependencyMessage($backendService->getBackends()));
$tmpl->assign('allowUserMounting', $backendService->isUserMountingAllowed());
+$tmpl->assign('allowUserMounting', $backendService->isUserMountingAllowed());
+$tmpl->assign('globalCredentials', $globalAuth->getAuth(''));
+$tmpl->assign('globalCredentialsUid', '');
return $tmpl->fetchPage();