BANGOR, Maine (AP) – The Maine supreme court is hearing arguments in a lawsuit that arose over a school district’s handling of a fifth-grade transgender girl.

The family and the Maine Human Rights Commission sued after she was denied access to the girls’ bathroom at her elementary school. The family also claimed the child was harassed.

But a Superior Court judge ruled that the Orono school district acted within its discretion by requiring her to use a staff bathroom after there was a complaint about the student using the girls’ bathroom.

The arguments were being heard in Bangor, where the state supreme court was meeting Wednesday. The lawsuit contends the school violated the Maine Human Rights Act.