Fuck that. You gotta go you gotta go. I worked in a warehouse that tried that, too. No one stopped me from going anytime. They’d grumble about it, but I’d just ask them where they’ve been after they use the bathroom.
Stories change pretty quick when you turn it on them.
Also, jobs that try to pull that stuff aren’t worth it.