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

This commit is contained in:
Michael Gapczynski 2012-06-02 20:06:52 -04:00
parent 4db5481ad5
commit 0145c65bf3
1 changed files with 1 additions and 1 deletions

View File

@ -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{