In a big victory for Pittsburgh Mayor Bill Peduto and other state and local politicians, a state court Thursday threw out a law that aided the National Rifle Association in challenging local gun ordinances in court.

The Commonwealth Court of Pennsylvania, an appellate court, ruled that the Republican-controlled legislature used an unconstitutional procedure to get the law enacted in the final days of last year’s session.

Here’s the court’s decision explained by the AP:

The gun provision was merged with a bill whose intent was to establish criminal penalties for theft of secondary metals, such as wires or cables. The judges said that process violated constitutional requirements that bills may not be altered to change their original purpose and must be confined to one subject.

The ousted law, Act 192, would have allowed gun owners to challenge an ordinance without having to show they were harmed by it, and let the membership organizations such as the NRA sue on behalf of a member and recover damages if the challenge went in their favor.

Peduto said in a statement that he was “overjoyed” that the state court system sided with citizens and public safety “instead of special rights for the gun lobby.”

“This law was clearly unconstitutional from the outset, and designed to threaten Pittsburgh and other cities trying to protect their neighborhoods from illegal guns,” Peduto said.

The ruling sends “a very strong message to the General Assembly that the old way of doing business just isn’t acceptable anymore,” Mark McDonald, press secretary to Philadelphia Mayor Michael Nutter, told the AP. “The law requires and the public expects transparency, deliberation and public debate.”

Reach Natasha Khan at 412-315-0261 or nkhan@publicsource.org. Follow her on Twitter @khantasha.

We don't have paywalls — but your support helps us bridge crucial information gaps.

Readers tell us they can't find the information they get from our reporting anywhere else, and we're glad to provide this important service for our community. We work hard to produce accurate, timely, impactful journalism without paywalls that keeps our region informed and moving forward.

However, only .01% of the people who read our stories contribute to our work financially. Our newsroom depends on the generosity of readers like yourself to make our high-quality local journalism possible, and the costs of the resources it takes to produce it have been rising, so each member means a lot to us.

Your donation to our nonprofit newsroom helps ensure everyone in Allegheny County can stay up-to-date about decisions and events that affect them. Please make your gift of support now.

Natasha is PublicSource's creative director. She runs the organizations visuals team, edits and produces interactive graphics, data visualizations and web packages for PublicSource. She manages the website...