summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index c63efb359cc..a4bb4f584f8 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -949,7 +949,7 @@ class OC {
if (!self::checkUpgrade(false)
&& !$systemConfig->getValue('maintenance', false)) {
// For logged-in users: Load everything
- if(OC_User::isLoggedIn()) {
+ if(\OC::$server->getUserSession()->isLoggedIn()) {
OC_App::loadApps();
} else {
// For guests: Load only filesystem and logging
@@ -986,7 +986,7 @@ class OC {
}
// Someone is logged in
- if (OC_User::isLoggedIn()) {
+ if (\OC::$server->getUserSession()->isLoggedIn()) {
OC_App::loadApps();
OC_User::setupBackends();
OC_Util::setupFS();