0 disables flags for ban

v1.18.x
barisusakli 11 years ago
parent c7744d7a64
commit fc00586f0e

@ -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;

Loading…
Cancel
Save