Skip to content

Commit

Permalink
[com_content] - respect acces level
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Oct 25, 2017
1 parent e0e8c95 commit bb9e9d3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions components/com_content/models/articles.php
Expand Up @@ -253,12 +253,11 @@ protected function getListQuery()
}

// Filter by access level.
if ($access = $this->getState('filter.access'))
{
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')')
->where('c.access IN (' . $groups . ')');
}

$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')')
->where('c.access IN (' . $groups . ')');


// Filter by published state
$published = $this->getState('filter.published');
Expand Down

0 comments on commit bb9e9d3

Please sign in to comment.