Verify user exists when checking if logged in, fix for bug oc-863
This commit is contained in:
parent
4db5481ad5
commit
0145c65bf3
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue