SANTA ANA  (AP) — A federal judge has ruled that a 7-year-old boy with autism must be allowed to bring his service dog with him to his Orange County elementary school.

The Los Angeles Times says Judge Andrew Guilford granted a preliminary injunction Tuesday in favor of the student, identified as C.C. in court papers. Guilford found that keeping the boy and the dog apart during school hours could hurt the bond between the two.

READ MORE: Omicron COVID-19 Variant In Southland Sparks Concern Over Winter Surge

The boy’s parents sued the Cypress School District, claiming their son was being discriminated against because of his disability.

READ MORE: Veterans' Voices: Steve Johnson

The school district had argued that the dog’s presence could be disruptive and burdensome for staff.

The dog is trained to help keep the boy from wandering off and to detect his mood and calm him if he starts feeling anxious.

MORE NEWS: Advocacy Group Creates Amazon Wish List For Students In Need This Holiday Season

 (© Copyright 2011 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)