Skip to content
Snippets Groups Projects
Commit 993ebc4c authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Verify user exists when checking if logged in, fix for bug oc-863

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