コード例 #1
0
ファイル: dispatcher.php プロジェクト: raeldc/nooku-server
 public function _actionAuthorize(KCommandContext $context)
 {
     $result = parent::_actionAuthorize($context);
     if (!JFactory::getUser()->authorize('com_weblinks', 'manage')) {
         throw new KDispatcherException(JText::_('ALERTNOTAUTH'), KHttpResponse::FORBIDDEN);
         $result = false;
     }
     return $result;
 }