(upstream_domain_name, user)
return downstream_domains
Returns a list of domain names that actively linked downstream of the provided upstream domain
    NOTE: if the RELEASE_MANAGEMENT privilege is enabled, ensure user has admin access
Returns a list of domain names that actively linked downstream of the provided upstream domain
    NOTE: if the RELEASE_MANAGEMENT privilege is enabled, ensure user has admin access
Returns a list of domain names that actively linked downstream of the provided upstream domain NOTE : if the RELEASE_MANAGEMENT privilege is enabled ensure user has admin access
def get_accessible_downstream_domains(upstream_domain_name, user):
    """
    Returns a list of domain names that actively linked downstream of the provided upstream domain
    NOTE: if the RELEASE_MANAGEMENT privilege is enabled, ensure user has admin access
    """
    downstream_domains = [d.linked_domain for d in get_linked_domains(upstream_domain_name)]
    if domain_has_privilege(upstream_domain_name, RELEASE_MANAGEMENT):
        return [domain for domain in downstream_domains
                if user_has_admin_access_in_all_domains(user, [upstream_domain_name, domain])]
    return downstream_domains
def get_accessible_downstream_domains ( upstream_domain_name , user ) : downstream_domains = [ d . linked_domain for d in get_linked_domains ( upstream_domain_name ) ] if domain_has_privilege ( upstream_domain_name , RELEASE_MANAGEMENT ) : return [ domain for domain in downstream_domains if user_has_admin_access_in_all_domains ( user , [ upstream_domain_name , domain ] ) ] return downstream_domains