mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-11 07:41:04 +00:00
Add ACL
This commit is contained in:
parent
aac8d486eb
commit
eb66d15142
@ -10,6 +10,11 @@
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
jimport('joomla.application.component.controllerlegacy');
|
||||
|
||||
if (!JFactory::getUser()->authorise('core.manage', 'com_jedchecker'))
|
||||
{
|
||||
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
|
||||
}
|
||||
|
||||
// We'll need jfile and JFolder all through the compoenent so let us load them here
|
||||
jimport('joomla.filesystem.folder');
|
||||
jimport('joomla.filesystem.file');
|
||||
|
Loading…
Reference in New Issue
Block a user