Skip to content

Commit

Permalink
Update view.html.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Apr 16, 2014
1 parent 33744a4 commit fb6e4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_content/views/article/view.html.php
Expand Up @@ -125,7 +125,7 @@ public function display($tpl = null)
$offset = $this->state->get('list.offset');

// Check the view access to the article (the model has already computed the values).
if ($item->params->get('access-view') != true && ($item->params->get('show_noauth', '0') != '1'))
if ($item->params->get('access-view') == false && ($item->params->get('show_noauth', '0') == '0'))
{
JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));
return;
Expand Down

0 comments on commit fb6e4df

Please sign in to comment.