For as long as I can remember, our national regulations say:
226. During flight, a person may occupy a control seat of an aircraft equipped with fully or partially functioning dual controls only if:
(a) the person holds an appropriate pilot licence for the type of aircraft and the class of operations in which the aircraft is flown;
Sackable offence? That's another issue.