32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-26 01:57:30 +00:00

Add an exception when not allowed (#262)

This commit is contained in:
andrepereiradasilva 2017-02-13 16:05:26 +00:00 committed by Yves Hoppe
parent d4cdc056bb
commit 5178381b51

View File

@ -12,7 +12,7 @@ JHtml::_('behavior.tabstate');
if (!JFactory::getUser()->authorise('core.manage', 'com_weblinks'))
{
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
}
$controller = JControllerLegacy::getInstance('Weblinks');