I don't see how that is legal, you best just find another pub, but to answer your question I don't see it to be legal as the customer should be able to buy wares if the seller is selling. Try the bar again, if that doesn't work out then there really isn't any point going to court over purchase of alcohol :P Best find another pub.
Hopefully this helps!