function isAllowed($assoc_type, $session_type)
    {
        $assoc_good = in_array(array($assoc_type, $session_type),
                               $this->allowed_types);

        $matches = in_array($session_type,
                            Auth_OpenID_getSessionTypes($assoc_type));

        return ($assoc_good && $matches);
    }
function isAllowed($assoc_type, $session_type)
    {
        $assoc_good = in_array(array($assoc_type, $session_type),
                               $this->allowed_types);

        $matches = in_array($session_type,
                            Auth_OpenID_getSessionTypes($assoc_type));

        return ($assoc_good && $matches);
    }
function isAllowed ( $ assoc_type , $ session_type ) { $ assoc_good = in_array ( array ( $ assoc_type , $ session_type ) , $ this -> allowed_types ) ; $ matches = in_array ( $ session_type , Auth_OpenID_getSessionTypes ( $ assoc_type ) ) ; return ( $ assoc_good && $ matches ) ; }
Is this combination of association type and session type allowed?
Is this combination of association type and session type allowed?