mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Only show import button if user storages are allowed
This commit is contained in:
parent
384c6fd3ac
commit
6c798889a5
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue