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.
Sign up to receive a 3-part series of useful information and advice about child custody law.