Scotland’s highest civil court ruled Wednesday that the Scottish government’s treatment of churches during the pandemic has been unlawful. A Catholic priest, Canon Tom White, had challenged the proportionality of the ban along with a coalition of 27 other faith leaders, in a legal action that went before the court earlier this month.

The ruling came on the heels of a major government concession allowing churches to reopen with a cap of 50 worshippers this Friday, and could keep Holyrood from attempting similar bans on public worship in the future.