One example is Finnish legislation: https://finlex.fi/fi/laki/ajantasa/2004/20040759#L2P4 Sadly only available in Finnish. The law applies both to employees and candidates.
EDIT: Looks like there is an English translation. See section 4 of: https://finlex.fi/en/laki/kaannokset/2004/en20040759_2019034...