mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 12:01:17 +01:00
fuck git
This commit is contained in:
@@ -31,7 +31,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_topic']);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user