Yeah, they're not allowed to participate and enter the gambling premises. Whether it's cockfighting or any type of gambling activity, it's part of the public official's oath that they shouldn't engage in any type of gambling activity or else, when they're reported, they'll take a sanction.
That's for sure but it can't be stopped if there are police officers that are still gambling no matter what the rules and oath they've taken, if they're a gambler, they'll always be a gambler.
Those kind of rules are incredibly difficult to enforce as it is not as if those which due to their profession cannot gamble will actually tell everyone they are doing it, another example of this are athletes which are not supposed to gamble on matches in which they participate, with some leagues asking to not even make any kind of bet on the league or the sport at all, and yet we get to know many examples of this over the years, and those are only the ones which are caught as most likely there are many athletes which break the rules and we never find out about it.
It's part of their oath and I think that they have to accept it but we're also sure that many of them break that rule and oath that they've promised.
I also a lot of those officials that have been involved in gambling and mainly in cockfighting because it's one of the most popular type of gambling in here.
In some gambling houses, I've seen that there's a poster that they're not allowing anyone that works in the government to enter and to gamble.