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

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

parent 4db5481a
No related branches found
No related tags found
No related merge requests found
......@@ -240,7 +240,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.
Finish editing this message first!
Please register or to comment