There is no law that says you cannot work two different jobs. You can have two different jobs from the same employer; you can have two different jobs from different employers. Both are legal.

It is not outside the realm of possibility that the two departments have agreed to this. Obviously I can't know that this is true, but it also doesn't sound as if you know for certain that it is not true.

Are you in Payroll?