The township of Mahwah has agreed to settle a lawsuit filed by the state last year alleging that the Bergen County municipality adopted two discriminatory ordinances: one that banned nonresidents from using the town’s public parks, and the other that prohibited the posting of “lechis” on utility poles.

According to a statement released Monday by Attorney General Gurbir Grewal, Mahwah has repealed the two ordinances at issue in the original complaint and has agreed to refrain from adopting any future ordinances imposing similar restrictions. The settlement is still subject to final court review and approval, Grewal said.