def get_authority_records(entity, authorities):
    """Return a QuerySet of authority records available to entity
    and which are associated with one of the authorities."""
    return entity.get_authority_records().filter(authority__in=authorities)