Respond with 404 when topic inside hidden category

v1.18.x
Raphael Beer 9 years ago
parent 1b7ca555e0
commit cf7b7a8d4c

@ -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