I think that varies a lot by country, and perhaps by industry. Requirements that it shouldn't conflict in terms of interests or demands on your time/energy are common from what I've seen, you might need to get permission but I've only rarely seen outright bans.
♥ 1