There is something called "tillsynsplikt" in Swedish law. Hard to translate, but perhaps "obligation of exercising care/authority".
This normally applies mostly to the parents of a child, but is taken over by the school during school time. The obligation comes with fuzzy yet extensive rights to enforce order, in whatever way and towards whatever goal can be argued to be in the big-picture-best-interest of the child or group of children.
Of course there are various laws specifically granting rights to children. To decide if a particular act is lawful or not, you (or a court!) needs to weigh all the relevant laws against each other.
This normally applies mostly to the parents of a child, but is taken over by the school during school time. The obligation comes with fuzzy yet extensive rights to enforce order, in whatever way and towards whatever goal can be argued to be in the big-picture-best-interest of the child or group of children.
Of course there are various laws specifically granting rights to children. To decide if a particular act is lawful or not, you (or a court!) needs to weigh all the relevant laws against each other.