The Constitution, the Penal Code, and the Guarantees Law contemplate restrictions for public officials in that matter.
This is an ingested summary. Full reporting is available at the primary source below.