Article 542 [source]

Spanish Criminal Code
English translation

The authority or public official who knowingly prevents a person from exercising other civic rights recognized by the Constitution and the Laws will incur the penalty of special disqualification from employment or public office for a period of one to four years.