If your second job leads to the total of your work taking up more than 48 hours per week, your employer can forbid it. Likewise if you work in your holidays.
I don't think it is as straightforward as you make it sound.