The point is nothing to do with the teachers. It also has nothing to do with being punished for particular behaviour. It's the form that the punishment takes. Were they to brand her with irons and pull out her toenails, you would expect there to be some legislation against that. Basically, she is being detained in a manner that may or may not be against international law.