The bar is a public place in that they allow in the public. You have no expectation of privacy there.
However the bar owner as the owner can explicitly ban photography and that’s fine it’s their bar , but they have to explicitly let people know the rules.
You ever been to a bar or a club? People are talking photos everywhere lol