コード例 #1
0
ファイル: icalrepeat.php プロジェクト: madseller/coperio
 protected function toggleICalEventPublish($cid, $newstate)
 {
     $is_event_editor = JEVHelper::isEventPublisher();
     if (!$is_event_editor) {
         JError::raiseError(403, JText::_('ALERTNOTAUTH'));
     }
     parent::toggleICalEventPublish($cid, $newstate);
 }
コード例 #2
0
ファイル: icalrepeat.php プロジェクト: pguilford/vcomcc
 protected function toggleICalEventPublish($cid, $newstate)
 {
     $is_event_editor = JEVHelper::isEventPublisher();
     if (!$is_event_editor) {
         throw new Exception(JText::_('ALERTNOTAUTH'), 403);
         return false;
     }
     parent::toggleICalEventPublish($cid, $newstate);
 }