Jumpseating-Being an ACM (additional crew member). Whether you are on the flight deck or in the back, you cannot drink alchohol.
Deadheading- Your airline books your space positive seat. You are on duty. Cannot drink.
Non-rev- Personal travel, sitting in the back, can drink.