mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 16:48:59 -04:00
Merge pull request #19602 from owncloud/allow-certificate-import
Fix importing of certificates
This commit is contained in:
commit
932e64f77f
2 changed files with 6 additions and 3 deletions
|
|
@ -122,8 +122,9 @@ class CertificateController extends Controller {
|
|||
protected function isCertificateImportAllowed() {
|
||||
$externalStorageEnabled = $this->appManager->isEnabledForUser('files_external');
|
||||
if ($externalStorageEnabled) {
|
||||
$backendService = \OC_Mount_Config::$app->getContainer()->query('OCA\Files_External\Service\BackendService');
|
||||
if ($backendService->getBackendsVisibleFor(\OCA\Files_External\Service\BackendService::VISIBILITY_PERSONAL)) {
|
||||
/** @var \OCA\Files_External\Service\BackendService $backendService */
|
||||
$backendService = \OC_Mount_Config::$app->getContainer()->query('\OCA\Files_External\Service\BackendService');
|
||||
if ($backendService->isUserMountingAllowed()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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