Update isCertificateImportAllowed() check to new API
This commit is contained in:
parent
fb717f254f
commit
27bc781cba
|
@ -120,8 +120,8 @@ class CertificateController extends Controller {
|
||||||
protected function isCertificateImportAllowed() {
|
protected function isCertificateImportAllowed() {
|
||||||
$externalStorageEnabled = $this->appManager->isEnabledForUser('files_external');
|
$externalStorageEnabled = $this->appManager->isEnabledForUser('files_external');
|
||||||
if ($externalStorageEnabled) {
|
if ($externalStorageEnabled) {
|
||||||
$backends = \OC_Mount_Config::getPersonalBackends();
|
$backendService = \OC_Mount_Config::$app->getContainer()->query('OCA\Files_External\Service\BackendService');
|
||||||
if (!empty($backends)) {
|
if ($backendService->getBackendsVisibleFor(\OCA\Files_External\Service\BackendService::VISIBILITY_PERSONAL)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue