src/components/Auth.php
public function matchRoute($userId, $route)
    {
        $groups = $this->getRouteTable($userId, $route);
        
        if (is_array($groups) && count($groups) > 0) {
            return true;
        }

        return false;
    }
public function matchRoute($userId, $route)
    {
        $groups = $this->getRouteTable($userId, $route);
        
        if (is_array($groups) && count($groups) > 0) {
            return true;
        }

        return false;
    }
public function matchRoute ( $ userId , $ route ) { $ groups = $ this -> getRouteTable ( $ userId , $ route ) ; if ( is_array ( $ groups ) && count ( $ groups ) > 0 ) { return true ; } return false ; }
See if the user has permitted the provided route.

@param integer $userId The user id from admin users
@param string $route The route to test.
@return boolean
See if the user has permitted the provided route .