A federal judge has ruled that a southern Oregon city can’t limit a local church’s homeless meal services.

U.S. Magistrate Judge Mark Clarke found that an ordinance passed by the small city of Brookings, on the southern Oregon coast, violated the religious freedom rights of St. Timothy’s Episcopal Church, KGW reported. He issued his opinion on Wednesday.

The 2021 ordinance limited the church’s homeless meal services to two days a week, and required a permit to serve free food in residential areas. It was passed in response to resident complaints.

The church sued the city in 2022, saying the ordinance violated its right to freely practice religion.