summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-10 21:40:51 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-09-10 21:44:56 +0100
commit27bc781cba0c445a5921ecba95f11fc813bdaabe (patch)
tree5d18b52738f942fef8efa13a52cee155da422f33 /settings
parentfb717f254fe81065912c13e0907ba374c8167f98 (diff)
downloadnextcloud-server-27bc781cba0c445a5921ecba95f11fc813bdaabe.tar.gz
nextcloud-server-27bc781cba0c445a5921ecba95f11fc813bdaabe.zip
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;
}
}