Skip to content

Commit

Permalink
fixed bug detected by infograf768
Browse files Browse the repository at this point in the history
  • Loading branch information
LivioCavallo committed Aug 24, 2017
1 parent 15c0350 commit 175a328
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/com_content/views/form/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,17 @@ public function display($tpl = null)
$this->form = $this->get('Form');
$this->return_page = $this->get('ReturnPage');

$authorised = false;

if (empty($this->item->id))
{
if ($this->state->params->get('enable_category') == 1)
{
$catid = $this->state->params->get('catid');
$authorised = $user->authorise('core.create', 'com_content.category.' . $catid);
if (!empty($catid))
{
$authorised = $user->authorise('core.create', 'com_content.category.' . $catid);
}
}
else
{
Expand Down

0 comments on commit 175a328

Please sign in to comment.