mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
fixed permaban on redis
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports = function (User) {
|
||||
}
|
||||
|
||||
// If they are banned, see if the ban has expired
|
||||
var stillBanned = !userData['banned:expire'] || Date.now() < userData['banned:expire'];
|
||||
var stillBanned = !parseInt(userData['banned:expire'], 10) || Date.now() < parseInt(userData['banned:expire'], 10);
|
||||
|
||||
if (stillBanned) {
|
||||
return next(null, true);
|
||||
|
||||
Reference in New Issue
Block a user