EDINBURGH’S plans to crack down on AirBnB-style holiday flats has been ripped up by a judge – less than four months before they were due to come into force.

A bombshell ruling from the Court of Session on Thursday has ruled parts of the city council’s plans to regulate short-term holiday lets were unlawful.

It comes following Scotland's largest-ever crowd-funded legal challenge, which saw landlords take the council to court last month.

The four petitioners raised £300,000 to fund the judicial review and argued the scheme was “onerous and oppressive” and went beyond the aims originally set out by the Government, which were to improve guest safety.

They hailed the decision as "a victory for law and common sense" and said it should signal a "fresh approach" to short-term lets licensing from the council and Scottish Government.

Housing campaigners said it "flies completely in the face of democracy and the will of the people" arguing that "an overwhelming majority of people in this city support tighter restrictions on [short-term lets]".

But Edinburgh council leader Cammy Day said it was not the end of the road for his proposed reforms and that the judge had accepted "large parts" of the local authority's plans.

He said: "Our residents have told us that, in many cases, short-term lets are hollowing out their communities, reducing housing supply and increasing housing costs. We can’t forget that many have endured years of disturbance and anti-social behaviour and we will continue to work hard to get this right.

“The court acknowledged our intention to find a solution to this and agreed that it was legitimate to use both planning and licensing policy. We welcome the clarity he’s provided and will now consider our next steps in more detail.

“We remain committed to ensuring the whole city benefits from our thriving visitor economy but it has to be managed and it has to be sustainable – and I continue to believe that fair and effective short-term let controls would be an important step in the right direction.”

Holiday let hosts were required to submit an application by October 1, a deadline which was extended from April, however this is now likely to be revised again as the council deals with the fallout.

READ MORE: House prices are leaving scenic rural Scottish towns at ‘tipping point’

Lord Braid, who listened to arguments from both sides during the two-day hearing, ruled that a “rebuttable presumption” against granting licenses for secondary lets – an entire property that is not an operator's principal home – within tenement blocks was unlawful.

He also found the lack of provision for temporary licences and requirement for some hosts to supply floor coverings went beyond the council's powers.

Eilidh Keay from tenants' union Living Rent Edinburgh said the decision "demonstrates how a small group of people can use their money and power to weaponise the legal system to their advantage".

She said: "This flies completely in the face of democracy and the will of the people.

"Edinburgh needs homes, not holiday lets. In coming down in support of short term let operators, this decision seems to have forgotten that Edinburgh is in the midst of a housing crisis.

"It is disgusting that the profit of short term let operators should be put before the needs of tenants, residents and communities for homes."

A statement issued by petitioners following publication of the judgment on Thursday said: "We have yet to fully digest the detail of the decision but we hope that this will give common cause to both the Scottish Government and City of Edinburgh Council to seek a fresh approach that aims to collaborate and work with local operators of self-catering accommodation, recognising the many good things it brings to the economy and people of Scotland.

"As the largest crowd-funded case in the history of the UK, the petitioner team are deeply grateful to the many small, local businesses that supported the campaign financially in such uncertain times.

READ MORE: Rising accommodation costs are festivals ‘grim reaper’ , says Edinburgh Fringe boss

“That grassroots support made it possible for us to take this action, challenging both licensing and planning surrounding short-term lets in Edinburgh and the potential wider impact across urban and rural Scotland.”

Fiona Campbell, chief executive of the Association of Scotland’s Self-Caterers, said: “We are pleased this decision from the Court of Session confirms that City of Edinburgh Council’s short-term let licensing policy was unlawful in respect of the rebuttal presumption and contravenes Provision of Services Regulations.

"We pay tribute to the determination and courage of the four petitioners, and are extremely thankful to all those who donated and the superb legal team. This was a team effort and they can be incredibly proud of what they achieved.

"The impact of this will not be confined to the capital as the decision has ramifications for licensing schemes across Scotland.

"The Scottish Government needs to go back to the drawing board on short term let regulation and engage constructively with industry to provide a regulatory framework that works for all stakeholders.

"The time to act is now and the ASSC has pragmatic, fair and proportionate policy solutions which can assist.”