Skip to content

Commit

Permalink
[fix] Remove uneeded ACL checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Jul 6, 2015
1 parent 7ed4bb9 commit 6efe625
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions administrator/components/com_templates/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
$app = JFactory::getApplication();
$user = JFactory::getUser();

// ACL for hardening the access to the template manager.
if (!$user->authorise('core.manage', 'com_templates')
|| !$user->authorise('core.edit', 'com_templates')
|| !$user->authorise('core.create', 'com_templates')
|| !$user->authorise('core.admin', 'com_templates'))
if (!$user->authorise('core.manage', 'com_templates'))
{
$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');

Expand Down

0 comments on commit 6efe625

Please sign in to comment.