Skip to content

Commit

Permalink
Re-added a pair, for readability as @andrepereiradasilva suggested no…
Browse files Browse the repository at this point in the history
…t to have it ungrouped for readability
  • Loading branch information
frankmayer committed Dec 13, 2016
1 parent aa4854b commit 3b3a4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_newsfeeds/views/newsfeed/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function display($tpl = null)
// Check the access to the newsfeed
$levels = $user->getAuthorisedViewLevels();

if (!in_array($item->access, $levels) or in_array($item->access, $levels) and (!in_array($item->category_access, $levels)))
if (!in_array($item->access, $levels) or (in_array($item->access, $levels) and (!in_array($item->category_access, $levels))))
{
$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
$app->setHeader('status', 403, true);
Expand Down

0 comments on commit 3b3a4b7

Please sign in to comment.