How to let one team through a barrier, and no other team

Make sure to mark a solution!