diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-09-11 14:02:16 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-11 14:02:16 +0200 |
commit | 437882c2841026d890a24741b3a32e3ba2f88f78 (patch) | |
tree | 13b8596224f48f3097da866817b6f52dff387c73 /settings | |
parent | b8f7d85570f01a0d1baf3082b0d84b6bafc8ae8c (diff) | |
parent | 27bc781cba0c445a5921ecba95f11fc813bdaabe (diff) | |
download | nextcloud-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.php | 4 |
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; } } |