Fix importing of certificates

Fixes https://github.com/owncloud/core/issues/19601
This commit is contained in:
Lukas Reschke 2015-10-06 14:00:55 +02:00
parent 4b31b349b8
commit 384c6fd3ac
1 changed files with 3 additions and 2 deletions

View File

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