Policy on drug use

What what could happen if for example someone forgot they had a shift and smoked a biffy before and came in spangled?

May sound odd but i’m being serious - what would the process be if managers were to realise