aboutsummaryrefslogtreecommitdiffstats
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:06:52 -0400
commit993ebc4c902965e4612207fef9e5b04fe0838a59 (patch)
tree43385af5cef4c0ad92f78756f0f7e05b09bcbe40 /lib/user.php
parentcc84bd2993b4f5049076dc4d12d6dada9d1a4f85 (diff)
downloadnextcloud-server-993ebc4c902965e4612207fef9e5b04fe0838a59.tar.gz
nextcloud-server-993ebc4c902965e4612207fef9e5b04fe0838a59.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 be349aeb055..17c11322b80 100644
--- a/lib/user.php
+++ b/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{