Skip to content
Snippets Groups Projects
Commit 6c798889 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Only show import button if user storages are allowed

parent 384c6fd3
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,9 @@ $clients = array( ...@@ -119,7 +119,9 @@ $clients = array(
$enableCertImport = false; $enableCertImport = false;
$externalStorageEnabled = \OC::$server->getAppManager()->isEnabledForUser('files_external'); $externalStorageEnabled = \OC::$server->getAppManager()->isEnabledForUser('files_external');
if ($externalStorageEnabled) { 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();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment