Check basic auth header only for not-logged-in users
This commit is contained in:
parent
a02b00445e
commit
058324b80e
|
@ -760,13 +760,13 @@ class OC {
|
||||||
// Load minimum set of apps
|
// Load minimum set of apps
|
||||||
if (!self::checkUpgrade(false)) {
|
if (!self::checkUpgrade(false)) {
|
||||||
// For logged-in users: Load everything
|
// For logged-in users: Load everything
|
||||||
\OC_User::tryBasicAuthLogin();
|
|
||||||
if(OC_User::isLoggedIn()) {
|
if(OC_User::isLoggedIn()) {
|
||||||
OC_App::loadApps();
|
OC_App::loadApps();
|
||||||
} else {
|
} else {
|
||||||
// For guests: Load only authentication, filesystem and logging
|
// For guests: Load only authentication, filesystem and logging
|
||||||
OC_App::loadApps(array('authentication'));
|
OC_App::loadApps(array('authentication'));
|
||||||
OC_App::loadApps(array('filesystem', 'logging'));
|
OC_App::loadApps(array('filesystem', 'logging'));
|
||||||
|
\OC_User::tryBasicAuthLogin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue