Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-06-03 04:06:52 +0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-06-03 04:09:44 +0400
commit0145c65bf3e90f17d0bda6d466922c6ef14c4918 (patch)
treef4f26637a6a2d63b6b935a9f89a2158a621a7669
parent4db5481ad53d37c8b82aeac926a0278a0c5c9e69 (diff)
Verify user exists when checking if logged in, fix for bug oc-863
-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{