Skip to content

Commit

Permalink
train near station
Browse files Browse the repository at this point in the history
sorry
  • Loading branch information
alikon committed Nov 10, 2017
1 parent 5f93765 commit 82a9816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_modules/models/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ protected function getListQuery()
$query->where($db->quoteName('a.client_id') . ' = ' . (int) $clientId . ' AND ' . $db->quoteName('e.client_id') . ' = ' . (int) $clientId);

// Filter by current user access level.
$user = JFactory::getUser();
// Get the current user for authorisation checks
if ($user->authorise('core.admin') !== true)
{
$user = JFactory::getUser();
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
Expand Down

0 comments on commit 82a9816

Please sign in to comment.