Merge pull request #3880 from rbeer/hidden_category-topics

Respond with 404 when topic inside hidden category
v1.18.x
psychobunny 9 years ago
commit abeb91e172

@ -119,6 +119,10 @@ topicsController.get = function(req, res, callback) {
return next(err);
}
if (topicData.category.disabled) {
return callback();
}
topics.modifyByPrivilege(topicData.posts, results.privileges);
plugins.fireHook('filter:controllers.topic.get', topicData, next);

Loading…
Cancel
Save