yes, there are different possibilities, and we should distinguish these. Checking id documents and checking for dangerous items can both occur separately. Whether specific permits are required would merit more thought how to do it (or if there are groups of cases).