Apps/Model/Front/Content/EntityCategoryList.php 1 location
|
@@ 171-173 (lines=3) @@
|
168 |
|
]; |
169 |
|
|
170 |
|
// check if this category is hidden |
171 |
|
if ((int)$this->category['configs']['showCategory'] !== 1) { |
172 |
|
throw new ForbiddenException(__('This category is not available to view')); |
173 |
|
} |
174 |
|
|
175 |
|
// make sorted tree of categories to display in breadcrumbs |
176 |
|
foreach ($this->_allCategories as $cat) { |
Apps/Controller/Front/Content.php 1 location
|
@@ 204-206 (lines=3) @@
|
201 |
|
$this->layout = null; |
202 |
|
|
203 |
|
// check if rss display allowed for this category |
204 |
|
if ((int)$model->category['configs']['showRss'] !== 1) { |
205 |
|
throw new ForbiddenException(__('Rss feed is disabled for this category')); |
206 |
|
} |
207 |
|
|
208 |
|
// initialize rss feed objects |
209 |
|
$feed = new Feed(); |