My boyfriends soon to be ex-wife was ordered not to have her new boyfriend around the children and she continues to have him around them.
Divorce / Separation Lawyer
There are no hard and fast rules. In this scenario, violation of the court's order could result in anything from a slap on the wrist to a suspension of parenting time. Your friend should consult with an attorney.
My response to the questions asked does not create an attorney/client relationship between myself and the questioner.