Apps/Controller/Front/Content.php 1 location
|
@@ 212-214 (lines=3) @@
|
209 |
|
$this->layout = null; |
210 |
|
|
211 |
|
// check if rss display allowed for this category |
212 |
|
if ((int)$model->category['configs']['showRss'] !== 1) { |
213 |
|
throw new ForbiddenException(__('Rss feed is disabled for this category')); |
214 |
|
} |
215 |
|
|
216 |
|
// initialize rss feed objects |
217 |
|
$feed = new Feed(); |
Apps/Model/Front/Content/EntityCategoryList.php 1 location
|
@@ 207-209 (lines=3) @@
|
204 |
|
]; |
205 |
|
|
206 |
|
// check if this category is hidden |
207 |
|
if ((int)$this->category['configs']['showCategory'] !== 1) { |
208 |
|
throw new ForbiddenException(__('This category is not available to view')); |
209 |
|
} |
210 |
|
|
211 |
|
// make sorted tree of categories to display in breadcrumbs |
212 |
|
foreach ($this->_allCategories as $cat) { |