public isAllowed ( $assoc_type, $session_type ) |
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;
}