diff --git a/components/com_content/models/articles.php b/components/com_content/models/articles.php index b50270a515d50..ff1ddc63ec26c 100644 --- a/components/com_content/models/articles.php +++ b/components/com_content/models/articles.php @@ -120,7 +120,7 @@ protected function populateState($ordering = 'ordering', $direction = 'ASC') $this->setState('filter.language', JLanguageMultilang::isEnabled()); // Process show_noauth parameter - if (!$params->get('show_noauth')) + if ((!$params->get('show_noauth')) || (!JComponentHelper::getParams('com_content')->get('show_noauth'))) { $this->setState('filter.access', true); } @@ -253,7 +253,7 @@ protected function getListQuery() } // Filter by access level. - if ($access = $this->getState('filter.access')) + if ($this->getState('filter.access', true)) { $groups = implode(',', $user->getAuthorisedViewLevels()); $query->where('a.access IN (' . $groups . ')')