closes #5991, closes #5884

This commit is contained in:
Barış Soner Uşaklı
2018-01-12 17:29:47 -05:00
parent d8fbd51e93
commit 72140e5338
13 changed files with 115 additions and 33 deletions

View File

@@ -179,7 +179,7 @@ module.exports = function (Posts) {
return callback(new Error('[[error:self-vote]]'));
}
if (command === 'downvote' && parseInt(results.reputation, 10) < parseInt(meta.config['privileges:downvote'], 10)) {
if (command === 'downvote' && parseInt(results.reputation, 10) < parseInt(meta.config['min:rep:downvote'], 10)) {
return callback(new Error('[[error:not-enough-reputation-to-downvote]]'));
}