A Catalan supporter of the 'Yes' campaign holds up a flag beside a pro-independence supporter outside the Scottish Parliament | Lesley Martin/ Getty Images Barcelona fans allowed to fly Catalan independence flags at Spanish cup final Fans of Catalan club had planned to wave Scottish flags instead.

Barcelona soccer fans will be able to fly pro-Catalan independence flags during a cup final in Madrid on Sunday after a court overturned a ban by local authorities.

Supporters of the club planned to fly Scottish flags after being told that the Estelada could not be brought into the ground for the Copa del Rey final against Sevilla. A government representative in Madrid had dubbed the Catalan flag "inflammatory" and police had said Barcelona fans would be searched as they entered the Vicente Calderón stadium.

But a Spanish judge on Friday overturned the ruling after an appeal by the Spanish league champions. The judge said "in no case has it been proven that the display of the Estelada could incite violence, racism, xenophobia or any other form of discrimination that violates human dignity."

Barcelona said the proposed ban was "an attack on the freedom of expression, the fundamental right of each and every individual to express their ideas and opinions freely and without censorship."

The club was fined €30,000 last July after fans waved Estelades during the Champions League final in Berlin. A €40,000 fine was handed down last October when fans waved the flags during a Champions League game against Bayer Leverkusen.

King Felipe will be at Sunday's game, which is played in his honor. Barcelona fans jeered the king at last year's final and whistled when the Spanish national anthem was played.

Before the ban was overturned, many Barcelona fans had planned to fly the Scottish Saltire flag at the cup final. A social media campaign channeled Mel Gibson's movie portrayal of Scottish hero William Wallace, telling Barcelona supporters that "they can take our flags but they can never take our freedom."

Campaigners have said that they hope to distribute 10,000 Scottish flags for fans attending the game.

Carles Puigdemont, president of the Generalitat regional government, said he would attend the game following the decision being overruled.