Article 540 [source]

Spanish Criminal Code
English translation

Any authority or public official who prohibits a peaceful assembly or dissolves it outside of cases expressly permitted by law, shall be punished with a special disqualification from public employment or office for four to eight years and a fine of six to nine months.