mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
added parseInt
This commit is contained in:
@@ -28,7 +28,7 @@ var user = require('./user'),
|
||||
user.getUserFields(uid, ['password', 'banned'], function(err, userData) {
|
||||
if (err) return next(err);
|
||||
|
||||
if (userData.banned && userData.banned === '1') {
|
||||
if (userData.banned && parseInt(userData.banned, 10) === 1) {
|
||||
return next({
|
||||
status: "error",
|
||||
message: "user-banned"
|
||||
|
||||
Reference in New Issue
Block a user