Skip to content
Snippets Groups Projects
Commit dfc90021 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

load authentication apps before checking wether user exists. fixes oc-910

parent b0d83d6d
Branches
No related tags found
No related merge requests found
...@@ -242,12 +242,13 @@ class OC_User { ...@@ -242,12 +242,13 @@ class OC_User {
* Checks if the user is logged in * Checks if the user is logged in
*/ */
public static function isLoggedIn(){ public static function isLoggedIn(){
if( isset($_SESSION['user_id']) AND $_SESSION['user_id'] AND self::userExists($_SESSION['user_id']) ){ if( isset($_SESSION['user_id']) AND $_SESSION['user_id']) {
OC_App::loadApps(array('authentication'));
if (self::userExists($_SESSION['user_id']) ){
return true; return true;
} }
else{
return false;
} }
return false;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment