summaryrefslogtreecommitdiffstats
path: root/apps/files_external/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/settings.php')
-rw-r--r--apps/files_external/settings.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/settings.php b/apps/files_external/settings.php
index dda715d7f3e..24cd9cd9aeb 100644
--- a/apps/files_external/settings.php
+++ b/apps/files_external/settings.php
@@ -26,12 +26,11 @@
use \OCA\Files_External\Service\BackendService;
-\OCP\User::checkAdminUser();
-
// we must use the same container
$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 +43,6 @@ $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('globalCredentials', $globalAuth->getAuth(''));
+$tmpl->assign('globalCredentialsUid', '');
return $tmpl->fetchPage();