A ban on the building of second homes in a Cornish seaside town can remain in place, according to a top judge.
In May more than 12,000 residents of St Ives voted against the new builds in a referendum.
It means any new housing projects will only get planning permission if they're sold to people who live in St Ives.
But following the result, an architects firm from Penzance challenged the decision by Cornwall Council to hold the referendum.
RLT Built Environment Ltd said the policy was against the human right to a family and home life.
But, a High Court judge ruled against the firm, and said the referendum can stand.
The referendum was held after a surge in holiday homes in the Cornish town and a shortage of affordable housing.
Locals had argued one in four homes in the town are second homes, belonging to people who don't live there full-time, pricing them out of the market.
St Ives has been nicknamed Kensington-on-Sea because of the number of rich holidaymakers who own houses there.
More than 42% turned out to vote.