The 9th Circuit Court of Appeals Thursday ruled that a Northern California school district had the right to ban American flag T-shirts during a school Cinco de Mayo celebration.

CBS News reports that the court decided that “the [school] officials’ concerns of racial violence outweighed students’ freedom of expression rights.”

The unanimous three-judge panel said past problems gave school officials sufficient and justifiable reasons for their actions. The court said schools have wide latitude in curbing certain civil rights to ensure campus safety.

“Our role is not to second-guess the decision to have a Cinco de Mayo celebration or the precautions put in place to avoid violence,” Judge M. Margaret McKeown wrote for the panel. The past events “made it reasonable for school officials to proceed as though the threat of a potentially violent disturbance was real,” she wrote.

Mob rule, in other words?

We’re confused too.