summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-10-06 14:06:22 +0200
committerLukas Reschke <lukas@owncloud.com>2015-10-06 14:06:22 +0200
commit6c798889a5a9384371aa780c1b399e087543fd4a (patch)
treed38622ff00e458a3ec6dce4c981bb2514fbbd9c9 /settings/personal.php
parent384c6fd3ace1d2f908aafc126ca46ca4fe9e3fd8 (diff)
downloadnextcloud-server-6c798889a5a9384371aa780c1b399e087543fd4a.tar.gz
nextcloud-server-6c798889a5a9384371aa780c1b399e087543fd4a.zip
Only show import button if user storages are allowed
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/personal.php b/settings/personal.php
index e9e2046f00a..e58e043af50 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -119,7 +119,9 @@ $clients = array(
$enableCertImport = false;
$externalStorageEnabled = \OC::$server->getAppManager()->isEnabledForUser('files_external');
if ($externalStorageEnabled) {
- $enableCertImport = true;
+ /** @var \OCA\Files_External\Service\BackendService $backendService */
+ $backendService = \OC_Mount_Config::$app->getContainer()->query('\OCA\Files_External\Service\BackendService');
+ $enableCertImport = $backendService->isUserMountingAllowed();
}