fixes bug introduced in c0721e105f

v1.18.x
psychobunny 11 years ago
parent d5e8044575
commit 7fa2f474fe

@ -48,7 +48,7 @@ var db = require('./database'),
}
function hasEnoughRep(next) {
if (meta.config['privileges:disabled']) {
if (parseInt(meta.config['privileges:disabled'], 10)) {
return next(null, false);
} else {
user.getUserField(uid, 'reputation', function(err, reputation) {

@ -33,7 +33,7 @@ var db = require('./database'),
});
},
hasEnoughRep: function(next) {
if (meta.config['privileges:disabled']) {
if (parseInt(meta.config['privileges:disabled'], 10)) {
return next(null, false);
} else {
user.getUserField(uid, 'reputation', function(err, reputation) {

Loading…
Cancel
Save