summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-17 21:42:07 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-17 21:42:07 +0100
commit058324b80e18474e0b3bd55ce9be8410209da1d2 (patch)
tree32d91277af61a875b0cbf69bef08fe1cf7e61240
parenta02b00445ef4dfd279ee760fdcb175de1bb48024 (diff)
downloadnextcloud-server-058324b80e18474e0b3bd55ce9be8410209da1d2.tar.gz
nextcloud-server-058324b80e18474e0b3bd55ce9be8410209da1d2.zip
Check basic auth header only for not-logged-in users
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 50b64c25cc5..ae87ecff394 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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();
}
}