It's not as if this is a law-it's a school rule. If these incidents were becoming common, and they were disrupting the school's primary purpose of educating people, it seems pretty reasonable to me.

They've banned all flags, so it's fair, at least.