public function hasAccessTo($controller, $action, $module = null)
    {
        if (!$this->accessMap) {
            return true; // if no access map is defined then it has access everywhere
        }
        if (is_null($module)) {
            $module = $this->request()->getModule();
        }
        return $this->accessMap->canAccess($controller, $action, $module);
    }
public function hasAccessTo($controller, $action, $module = null)
    {
        if (!$this->accessMap) {
            return true; // if no access map is defined then it has access everywhere
        }
        if (is_null($module)) {
            $module = $this->request()->getModule();
        }
        return $this->accessMap->canAccess($controller, $action, $module);
    }
public function hasAccessTo ( $ controller , $ action , $ module = null ) { if ( ! $ this -> accessMap ) { return true ; // if no access map is defined then it has access everywhere } if ( is_null ( $ module ) ) { $ module = $ this -> request ( ) -> getModule ( ) ; } return $ this -> accessMap -> canAccess ( $ controller , $ action , $ module ) ; }
Checks access to a specific controller and action.
@param string $controller name of the controller to be checked
@param string $action name of the action to be checked
@param string $module name of the module to be checked. If it's base website use '/' as value. If null is sent then it will use active module
@return boolean
Checks access to a specific controller and action .