From 828d5a4b4d11672dc80c2a13b969fcf5cf0be8e8 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 15 Jul 2016 15:18:23 -0400 Subject: [PATCH] fixes #4857 --- src/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.js b/src/user.js index 19f9974cba..e4f2eb5f55 100644 --- a/src/user.js +++ b/src/user.js @@ -268,7 +268,7 @@ var utils = require('../public/src/utils'); } else { // If they are banned, see if the ban has expired db.sortedSetScore('users:banned:expire', uid, function(err, score) { - var stillBanned = Date.now() < score; + var stillBanned = !score || Date.now() < score; if (!stillBanned) { async.parallel([