Check basic auth header only for not-logged-in users

This commit is contained in:
Lukas Reschke 2014-12-17 21:42:07 +01:00
parent a02b00445e
commit 058324b80e
1 changed files with 1 additions and 1 deletions

View File

@ -760,13 +760,13 @@ class OC {
// Load minimum set of apps
if (!self::checkUpgrade(false)) {
// For logged-in users: Load everything
\OC_User::tryBasicAuthLogin();
if(OC_User::isLoggedIn()) {
OC_App::loadApps();
} else {
// For guests: Load only authentication, filesystem and logging
OC_App::loadApps(array('authentication'));
OC_App::loadApps(array('filesystem', 'logging'));
\OC_User::tryBasicAuthLogin();
}
}