I'm 99% sure that's illegal, holy stuff.
lol it's totally legal. at the start of the year you have to sign papers out of the student handbook which is p much an agreement to the fact that you have 0 privacy and anything you own can be seized and searched at any time. if you sign it, it's legal.
No hats at all, not even beanies in winter when it was chilly.
last year (and the year before) all of the heaters were forgeted, so some classrooms were around 40* to 60* (i know the chemistry room hovered around mid 40s and the hallway to the gym stayed at 46*) and we still weren't allowed to wear hats or scarves or gloves.