Example #1
0
 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;
 }