function save() { $is_event_editor = JEVHelper::isEventCreator(); if (!$is_event_editor) { JError::raiseError(403, JText::_('ALERTNOTAUTH')); } parent::save(); }
function save($key = NULL, $urlVar = NULL) { $is_event_editor = JEVHelper::isEventCreator(); if (!$is_event_editor) { throw new Exception(JText::_('ALERTNOTAUTH'), 403); return false; } parent::save(); }