Only show import button if user storages are allowed

This commit is contained in:
Lukas Reschke 2015-10-06 14:06:22 +02:00
parent 384c6fd3ac
commit 6c798889a5
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}