Actually it is prohibited by the Indonesian Gov to drink in public throughout the whole of Indonesia, however the over-seeing of this law is in the hands of the local governments. For obvious reasons (tourism) the Balinese Gov turn a blind eye to people drinking in public places like parks, beaches and on the streets.