mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
0 disables flags for ban
This commit is contained in:
@@ -308,7 +308,7 @@ SocketPosts.flag = function(socket, pid, callback) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (count >= (meta.config.flagsForBan || 3)) {
|
||||
if (count >= (meta.config.flagsForBan || 3) && parseInt(meta.config.flagsForBan, 10) !== 0) {
|
||||
var adminUser = require('./admin/user');
|
||||
adminUser.banUser(post.uid, next);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user