They can only implement this if the crew allow it to happen. Let a few flights get delay \ canx because of it & see how quickly they abandon the idea.
I, like the OP, suspect this is not legal as the legal remit of BAAs "security" droids to is prevent anything entering an aircraft which would endanger its safety. Crew toothpaste isn't going to bring the aircraft out of the sky!