public function canAccess($controller, $action, $module = null) {
        $module = is_array($module)?null:$module;
        $rights = $this->getRightsFromMap($controller, $action, $module);
        if ('*' == $rights[0]) {
            return true;
        }
        if ('@' == $rights[0]) {
            return !\mpf\WebApp::get()->user()->isGuest();
        }
        $hasRights = false;
        foreach ($rights as $right) {
            $hasRights = $hasRights || \mpf\WebApp::get()->user()->hasRight($right);
        }
        return $hasRights;
    }
public function canAccess($controller, $action, $module = null) {
        $module = is_array($module)?null:$module;
        $rights = $this->getRightsFromMap($controller, $action, $module);
        if ('*' == $rights[0]) {
            return true;
        }
        if ('@' == $rights[0]) {
            return !\mpf\WebApp::get()->user()->isGuest();
        }
        $hasRights = false;
        foreach ($rights as $right) {
            $hasRights = $hasRights || \mpf\WebApp::get()->user()->hasRight($right);
        }
        return $hasRights;
    }
public function canAccess ( $ controller , $ action , $ module = null ) { $ module = is_array ( $ module ) ? null : $ module ; $ rights = $ this -> getRightsFromMap ( $ controller , $ action , $ module ) ; if ( '*' == $ rights [ 0 ] ) { return true ; } if ( '@' == $ rights [ 0 ] ) { return ! \ mpf \ WebApp :: get ( ) -> user ( ) -> isGuest ( ) ; } $ hasRights = false ; foreach ( $ rights as $ right ) { $ hasRights = $ hasRights || \ mpf \ WebApp :: get ( ) -> user ( ) -> hasRight ( $ right ) ; } return $ hasRights ; }
Check access for specified controller and action.
@param string $controller
@param string $action
@param string|null $module
@return boolean
Check access for specified controller and action .