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

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

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

Loading…
Cancel
Save