Ability to enable/disable the upvote/downvote system, closes #1672

This commit is contained in:
psychobunny
2014-06-27 13:00:47 -04:00
parent b040201764
commit 92c0bd07c9
2 changed files with 3 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ var async = require('async'),
}
Favourites.upvote = function(pid, uid, callback) {
if (meta.config['votingEnabled'] === false) {
if (meta.config['reputation:disabled'] === false) {
return callback(false);
}
@@ -106,7 +106,7 @@ var async = require('async'),
};
Favourites.downvote = function(pid, uid, callback) {
if (meta.config['votingEnabled'] === false) {
if (meta.config['reputation:disabled'] === false) {
return callback(false);
}