public function getRequiredRights(MenuAction $action)
    {
        $rights = [];
        $resolvedAction = $this->getResolvedAction($action);
        if(!is_null($resolvedAction)){
            try {
                $rights  = ControllerHelper::getRequiredRights(
                    $resolvedAction['controller'],
                    $resolvedAction['action']
                );
            } catch(\Exception $e){
                \common_Logger::d('do not handle permissions for action : ' . $action->getName() . ' ' . $action->getUrl());
            }
        }

        return $rights;
    }
public function getRequiredRights(MenuAction $action)
    {
        $rights = [];
        $resolvedAction = $this->getResolvedAction($action);
        if(!is_null($resolvedAction)){
            try {
                $rights  = ControllerHelper::getRequiredRights(
                    $resolvedAction['controller'],
                    $resolvedAction['action']
                );
            } catch(\Exception $e){
                \common_Logger::d('do not handle permissions for action : ' . $action->getName() . ' ' . $action->getUrl());
            }
        }

        return $rights;
    }
public function getRequiredRights ( MenuAction $ action ) { $ rights = [ ] ; $ resolvedAction = $ this -> getResolvedAction ( $ action ) ; if ( ! is_null ( $ resolvedAction ) ) { try { $ rights = ControllerHelper :: getRequiredRights ( $ resolvedAction [ 'controller' ] , $ resolvedAction [ 'action' ] ) ; } catch ( \ Exception $ e ) { \ common_Logger :: d ( 'do not handle permissions for action : ' . $ action -> getName ( ) . ' ' . $ action -> getUrl ( ) ) ; } } return $ rights ; }
Get the rights required for the given action
@param MenuAction $action
@return array the required rights
Get the rights required for the given action