summaryrefslogtreecommitdiffstats
path: root/settings/admin.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-04-09 16:07:15 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-16 14:15:04 +0200
commitd2ef73367c6fbc85a3032da405e1dad2fc714a4c (patch)
tree2ebcd339cc1547889adc96fe1cb15e331fd41697 /settings/admin.php
parent6bcf88ca96bb7fc0a1f80de4a0a36e59d513dcc6 (diff)
downloadnextcloud-server-d2ef73367c6fbc85a3032da405e1dad2fc714a4c.tar.gz
nextcloud-server-d2ef73367c6fbc85a3032da405e1dad2fc714a4c.zip
allow user to start migration in admin settings if no external user back-ends are enabled
Diffstat (limited to 'settings/admin.php')
-rw-r--r--settings/admin.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 43b21f40929..5cfe2654f66 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -82,8 +82,12 @@ $excludedGroupsList = $appConfig->getValue('core', 'shareapi_exclude_groups_list
$excludedGroupsList = explode(',', $excludedGroupsList); // FIXME: this should be JSON!
$template->assign('shareExcludedGroupsList', implode('|', $excludedGroupsList));
$template->assign('encryptionEnabled', \OC::$server->getEncryptionManager()->isEnabled());
+$backends = \OC::$server->getUserManager()->getBackends();
+$externalBackends = (count($backends) > 1) ? true : false;
$template->assign('encryptionReady', \OC::$server->getEncryptionManager()->isReady());
+$template->assign('externalBackendsEnabled', $externalBackends);
$encryptionModules = \OC::$server->getEncryptionManager()->getEncryptionModules();
+
try {
$defaultEncryptionModule = \OC::$server->getEncryptionManager()->getDefaultEncryptionModule();
$defaultEncryptionModuleId = $defaultEncryptionModule->getId();