I would have thought the real problem here is letting non-flight crew through the locked door. The FO was the PIC, and even if the auto pilot was disconnected, I would have thought the FO would notice quite quickly!
When I was younger I remember asking nicely to be able to sit up front for a few minutes and being allowed to. Was great fun!