First, even if searching him was legal, I'm pretty sure denying him access to an attorney before conducting it wasn't.*

Second, it may currently be legal but it's still wrong.


* Letting him go through without ultimately doing the search proves they didn't have any valid suspicion.