mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
crash fix
This commit is contained in:
@@ -16,6 +16,9 @@ module.exports = function(privileges) {
|
||||
privileges.posts = {};
|
||||
|
||||
privileges.posts.get = function(pids, uid, callback) {
|
||||
if (!Array.isArray(pids) || !pids.length) {
|
||||
return callback(null, []);
|
||||
}
|
||||
async.parallel({
|
||||
manage_content: function(next) {
|
||||
helpers.hasEnoughReputationFor('privileges:manage_content', uid, next);
|
||||
|
||||
Reference in New Issue
Block a user