33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-11 07:41:04 +00:00
This commit is contained in:
Jaz Parkyn 2016-02-15 23:19:20 +00:00
parent aac8d486eb
commit eb66d15142

View File

@ -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');