Answer:
No she is not right.
Step-by-step explanation:
No her right was not violated, instead she is the one in violation of rules here. First of all she is considered a minor and not up to the legal age to purchase tobacco products in the USA.
Secondly she was caught smoking on school grounds, this is also a violation of a smoking rule in the school.
Her actions warranted her a search and so her right wasn't violated.