Four groups are urging Spanish political parties to repeal a public security law nicknamed the "gag law" after the country holds a general election on Dec. 20.

The International Press Institute, the Committee to Protect Journalists, the European Federation of Journalists and the Platform in Defense of Free Expression say in a statement Thursday that the law poses dangers for the free flow of information.

The law allows the expulsion of migrants illegally entering Spain's two North African enclaves, sets stiff fines for protests outside Parliament or strategic installations and allows authorities to fine journalists and media organizations who distribute unauthorized images of police.

It was passed this year by the ruling conservative Popular Party after protests hit Spain amid the financial crisis, hitting an apex in 2012.