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: LA County To Expand Access To Coronavirus Vaccine To More Essential Workers Starting Monday

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

READ MORE: Meet The Giltinis: LA's New Rugby Team to Open Play At Coliseum March 20

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: High Winds Expected To Continue Through Sunday For Parts Of SoCal

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