If you are actually flying you cannot drink alcohol/drugs or be under the influence of alcohol/drugs. You can't consume alcohol/drugs within 12 hours before reporting for flight duty. You are also expected not to be under the influence of alcohol/drugs during normal working hours, regardless of your job.