They can do anything they want to. It's called airport security.