check err and tids

v1.18.x
barisusakli 10 years ago
parent b65d518a97
commit 545dbbf0df

@ -116,6 +116,10 @@ module.exports = function(Topics) {
}
privileges.topics.filter('read', tids, uid, function(err, tids) {
if (err || !tids.length) {
return callback(err, []);
}
var keys = tids.map(function(tid) {
return 'topic:' + tid;
});

Loading…
Cancel
Save