I think that "at work" is a critical qualification in your comment. These students did not do anything at school, and students are not employees; they are more closely akin to customers. The law permits employers a limited right to interfere in their employees' off-duty lives when off-duty activity reflects adversely on the employer. Schools don't, in general, have even that limited right to interfere with students' out-of-school activities.