the non-custodial parent has been denied legal custody based on a threat to the safety of the student or to the custodial parent, or
the non-custodial parent has been denied visitation or has been ordered to supervised visitation, or
the non-custodial parent's access to the student or to the custodial parent has been restricted by a temporary or permanent protective order, unless the order or any subsequent court order specifically allows access to student record information.