I have been invited to the flightdeck twice in the last 3 weeks (without asking for it)while traveling in Uniform.
In both cases i asked the crew what the policy on jumpseaters was in there company, and both airlines do not allow jumpseaters.
I the freight world it works the same where it is not allowed but some crews will take people on a case to case bases.
Neil