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

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

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

Loading…
Cancel
Save