diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-10-06 14:06:22 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-10-06 14:06:22 +0200 |
commit | 6c798889a5a9384371aa780c1b399e087543fd4a (patch) | |
tree | d38622ff00e458a3ec6dce4c981bb2514fbbd9c9 | |
parent | 384c6fd3ace1d2f908aafc126ca46ca4fe9e3fd8 (diff) | |
download | nextcloud-server-6c798889a5a9384371aa780c1b399e087543fd4a.tar.gz nextcloud-server-6c798889a5a9384371aa780c1b399e087543fd4a.zip |
Only show import button if user storages are allowed
-rw-r--r-- | settings/personal.php | 4 |
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(); } |