summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-09-11 14:02:16 +0200
committerLukas Reschke <lukas@owncloud.com>2015-09-11 14:02:16 +0200
commit437882c2841026d890a24741b3a32e3ba2f88f78 (patch)
tree13b8596224f48f3097da866817b6f52dff387c73 /settings
parentb8f7d85570f01a0d1baf3082b0d84b6bafc8ae8c (diff)
parent27bc781cba0c445a5921ecba95f11fc813bdaabe (diff)
downloadnextcloud-server-437882c2841026d890a24741b3a32e3ba2f88f78.tar.gz
nextcloud-server-437882c2841026d890a24741b3a32e3ba2f88f78.zip
Merge pull request #18963 from owncloud/ext-fix-fallbacks
Update isCertificateImportAllowed() check to new API
Diffstat (limited to 'settings')
-rw-r--r--settings/controller/certificatecontroller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/controller/certificatecontroller.php b/settings/controller/certificatecontroller.php
index 92d0961efb7..4c129dcd588 100644
--- a/settings/controller/certificatecontroller.php
+++ b/settings/controller/certificatecontroller.php
@@ -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;
}
}