So by preventing people from taking drugs on planes you are preventing terrorism? You do realize some airports have explicit policies on not looking or caring about drugs? Eg https://www.flylax.com/lax-marijuana-policy
Also your example is from Canada where there is no TSA yet people don't do similar things on planes, it's not an ideal example.