public worker in a position of authority
So it applies only to specific subsets of public roles (police, judge, etc).
It also applies to teachers, but I am not sure this was a good idea.
Switzerland has a similar law too https://www.swissinfo.ch/eng/church-and-state_geneva-secular...