(upstream_domain_name, user)
return list({domain for domain in domains if is_domain_available_to_link(
        upstream_domain_name, domain, user, should_enforce_admin=False)})
Finds available domains to link based on domains that the provided user is active in
Finds available domains to link based on domains that the provided user is active in
Finds available domains to link based on domains that the provided user is active in
def get_available_domains_to_link_for_user(upstream_domain_name, user):
    """
    Finds available domains to link based on domains that the provided user is active in
    """
    domains = [d.name for d in Domain.active_for_user(user)]
    return list({domain for domain in domains if is_domain_available_to_link(
        upstream_domain_name, domain, user, should_enforce_admin=False)})
def get_available_domains_to_link_for_user ( upstream_domain_name , user ) : domains = [ d . name for d in Domain . active_for_user ( user ) ] return list ( { domain for domain in domains if is_domain_available_to_link ( upstream_domain_name , domain , user , should_enforce_admin = False ) } )