Only show import button if user storages are allowed
This commit is contained in:
parent
384c6fd3ac
commit
6c798889a5
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue