This commit is contained in:
Julian Lam
2013-08-23 14:55:25 -04:00
parent 4d11fba20a
commit 9bc12f28b4
6 changed files with 15 additions and 15 deletions

View File

@@ -41,7 +41,8 @@ var RDB = require('./redis.js'),
}
function hasEnoughRep(next) {
user.getUserField(uid, 'reputation', function(reputation) {
user.getUserField(uid, 'reputation', function(err, reputation) {
if (err) return next(null, false);
next(null, reputation >= meta.config['privileges:manage_content']);
});
}