For all UK carriers, in-flight passenger visits to the front are totally prohibited by statute law - I think it's the Anti-Terrorism, Crime and Security Act 2001. In essence, only those required on the flight deck for the performance of their duties are allowed there in flight. Any breach is regarded as cause for immediate dismissal.
Some other countries are not so draconian.