 religion firmly establishes a right in the First Amendment, the Freedom of Religion Clause. This is, if he was observing the long hair, the school knew he had long hair when they let him in, and they allowed him to go, and the restrictions the school had and the reasons given forth by the school, I don't believe would pass a strict scrutiny test. It's not narrowly tailored.