In Switzerland and probably most or all EU countries.
For example, in Spain, the schools need a signed form allowing each student's picture to be published.
The issue of money gatekeeping legal rights is another issue entirely which should be addressed for everything, not just this specific problem. It's also, in my opinion, a lot more prevalent in the US than the rest of the first world countries.