mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-25 09:50:00 +00:00
Add an exception when not allowed (#262)
This commit is contained in:
parent
d4cdc056bb
commit
5178381b51
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user