You'd have to check with your employer if you're allowed to work for someone else whilst on leave. My employer doesn't allow this without specific permission.