Canyon High School in Anaheim, Calif., has apologized to a 16-year-old girl who was forced to change out of an NRA T-shirt which was said to have violated the school’s code against clothing that promotes or depicts violence or criminal activity.

Haley Bullwinkle’s shirt featured a silhouette of a man holding a rifle over an American flag and the words, “National Rifle Association of America, Protecting America’s Traditions Since 1871.” The Los Angeles Times reports:

On Thursday, the school changed course and apologized to the 16-year-old and said campus staff will be trained so that “an incident like this does not occur again.”

In asking the student to remove the shirt, school officials said the depiction of the rifle was a violation of the school’s dress code. When the student’s parents wrote to the school’s principal, suggesting that administrators had infringed on their daughter’s constitutional rights, Principal Kimberly Fricker responded by sending the parents the school’s policy on clothing that depicts violence.