properly handling error for hook filter:privileges.posts.filter

v1.18.x
Julian Lam 11 years ago
parent 9debfd94ec
commit b65d518a97

@ -101,7 +101,7 @@ module.exports = function(privileges) {
uid: uid,
pids: pids
}, function(err, data) {
callback(null, data.pids);
callback(err, data ? data.pids : null);
});
});
});

Loading…
Cancel
Save