The students were allowed to go after counselling and warning their parents