Commit c1d7b22d authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Always load authentication apps

The current code path may trigger situations where the LDAP application is not yet loaded and thus problems with the authentication appeared.

In previous versions of ownCloud the authentication mechanism manually loaded these apps which is why this affects ownCloud 8 and master only for my knowledge. (certainly not 6, maybe 7)

Backport to 8 might be something to consider.

parent 09a06e4f
......@@ -797,6 +797,9 @@ class OC {
// Always load authentication apps
// Load minimum set of apps
if (!self::checkUpgrade(false)
&& !$systemConfig->getValue('maintenance', false)
......@@ -805,8 +808,7 @@ class OC {
if(OC_User::isLoggedIn()) {
} else {
// For guests: Load only authentication, filesystem and logging
// For guests: Load only filesystem and logging
OC_App::loadApps(array('filesystem', 'logging'));
......@@ -815,7 +817,6 @@ class OC {
if (!self::$CLI and (!isset($_GET["logout"]) or ($_GET["logout"] !== 'true'))) {
try {
if (!$systemConfig->getValue('maintenance', false) && !\OCP\Util::needUpgrade()) {
OC_App::loadApps(array('filesystem', 'logging'));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment