summaryrefslogtreecommitdiffstats
path: root/lib/public/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/User.php')
-rw-r--r--lib/public/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/User.php b/lib/public/User.php
index 75ca6b6f757..64398a7f1f8 100644
--- a/lib/public/User.php
+++ b/lib/public/User.php
@@ -100,7 +100,7 @@ class User {
* @since 5.0.0
*/
public static function isLoggedIn() {
- return \OC_User::isLoggedIn();
+ return \OC::$server->getUserSession()->isLoggedIn();
}
/**