crash fix

This commit is contained in:
barisusakli
2014-10-02 19:03:03 -04:00
parent c72c876b04
commit eab180f305
2 changed files with 6 additions and 1 deletions

View File

@@ -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);