Merge pull request #18963 from owncloud/ext-fix-fallbacks

Update isCertificateImportAllowed() check to new API
This commit is contained in:
Lukas Reschke 2015-09-11 14:02:16 +02:00
commit 437882c284
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ class CertificateController extends Controller {
protected function isCertificateImportAllowed() {
$externalStorageEnabled = $this->appManager->isEnabledForUser('files_external');
if ($externalStorageEnabled) {
$backends = \OC_Mount_Config::getPersonalBackends();
if (!empty($backends)) {
$backendService = \OC_Mount_Config::$app->getContainer()->query('OCA\Files_External\Service\BackendService');
if ($backendService->getBackendsVisibleFor(\OCA\Files_External\Service\BackendService::VISIBILITY_PERSONAL)) {
return true;
}
}