mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-09 15:47:22 +02:00
closes #5692
This commit is contained in:
@@ -61,7 +61,7 @@ module.exports = function (User) {
|
||||
async.waterfall([
|
||||
async.apply(User.getUserFields, uid, ['banned', 'banned:expire']),
|
||||
function (userData, next) {
|
||||
var banned = parseInt(userData.banned, 10) === 1;
|
||||
var banned = userData && parseInt(userData.banned, 10) === 1;
|
||||
if (!banned) {
|
||||
return next(null, banned);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user