Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
437882c2
Commit
437882c2
authored
Sep 11, 2015
by
Lukas Reschke
Browse files
Merge pull request #18963 from owncloud/ext-fix-fallbacks
Update isCertificateImportAllowed() check to new API
parents
b8f7d855
27bc781c
Changes
1
Hide whitespace changes
Inline
Side-by-side
settings/controller/certificatecontroller.php
View file @
437882c2
...
...
@@ -120,8 +120,8 @@ class CertificateController extends Controller {
protected
function
isCertificateImportAllowed
()
{
$externalStorageEnabled
=
$this
->
appManager
->
isEnabledForUser
(
'files_external'
);
if
(
$externalStorageEnabled
)
{
$backend
s
=
\
OC_Mount_Config
::
getPersonalBackends
(
);
if
(
!
empty
(
$backend
s
))
{
$backend
Service
=
\
OC_Mount_Config
::
$app
->
getContainer
()
->
query
(
'OCA\Files_External\Service\BackendService'
);
if
(
$backend
Service
->
getBackendsVisibleFor
(
\
OCA\Files_External\Service\BackendService
::
VISIBILITY_PERSONAL
))
{
return
true
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment