If parents are divorced, is it acceptable for a counselor to allow an ex-spouse to be present during a child's session?

Can a counselor take sides with one parent and allow a parent to order the child to tell the counselor "every detail" about what happened during the other parent's visitation in order to help build a case for child custody?