CONN-329: adding policy check to outbound doc query.