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

remotes/origin/stable45
Michael Gapczynski 13 years ago
parent cc84bd2993
commit 993ebc4c90
  1. 2
      lib/user.php

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

Loading…
Cancel
Save