I know of at least one exception, having run an undercover drug buying program, resulting in numerous arrests, search warrants, etc.etc...back in my "ute".  ....But there's not enough room to state a violation of the law, and then list exceptions.  There are enough out there trying to prove someone wrong that will look it up on their own....LOL.