Working in Denmark. I took it up with my Union, and they said that I couldn't do anything about it.
The rule initially was made to own rights to images and articles from photographers and journalists, so they couldn't sell to third parties, but was extended to also include code.
We do have a similar rule (with similar origins), but it has to be contractually asserted, and it would only apply to portions of code integrated into a larger 'visual work' - mostly it doesn't come into play outside of contracting.
The rule initially was made to own rights to images and articles from photographers and journalists, so they couldn't sell to third parties, but was extended to also include code.