Skip to content

Commit

Permalink
don't allow to create tags
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Jul 20, 2016
1 parent 6e9da3b commit 81fa2c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/com_content/views/form/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ public function display($tpl = null)
$this->form->setFieldAttribute('language', 'default', $lang);
}

// If user not allowed to create tags, don't allow.
if (!$user->authorise('core.create', 'com_tags'))
{
$this->form->setFieldAttribute('tags', 'custom', 'deny');
}

$this->_prepareDocument();
parent::display($tpl);
}
Expand Down

0 comments on commit 81fa2c9

Please sign in to comment.