summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-06-02 20:06:52 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-06-02 20:09:44 -0400
commit0145c65bf3e90f17d0bda6d466922c6ef14c4918 (patch)
treef4f26637a6a2d63b6b935a9f89a2158a621a7669 /lib/user.php
parent4db5481ad53d37c8b82aeac926a0278a0c5c9e69 (diff)
downloadnextcloud-server-0145c65bf3e90f17d0bda6d466922c6ef14c4918.tar.gz
nextcloud-server-0145c65bf3e90f17d0bda6d466922c6ef14c4918.zip
Verify user exists when checking if logged in, fix for bug oc-863
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php
index a62b0f96838..99c6add9bbb 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -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{