mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
api/post/pid route
This commit is contained in:
@@ -153,9 +153,10 @@ module.exports = function(privileges) {
|
||||
helpers.some([
|
||||
function(next) {
|
||||
posts.getCidByPid(pid, function(err, cid) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
if (err || !cid) {
|
||||
return next(err, false);
|
||||
}
|
||||
|
||||
user.isModerator(uid, cid, next);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user