WASHINGTON AP – The Supreme Court ruled Thursday school officials violated an Arizona teenage girl’s rights by strip-searching her for prescription-strength ibuprofen, saying U.S. educators should not force children to remove their clothing unless student safety is at risk.

In an 8-1 ruling, the justices said that Safford Middle School officials violated the Fourth Amendment ban on unreasonable searches with their treatment of Savana Redding. However, the court also ruled that the Arizona school officials cannot be held financially liable for their search.