(WIVB) — A federal judge has issued a temporary restraining order prohibiting the prosecution of the new New York State gun law that makes carrying a firearm in places of worship a felony.

The state legislature approved the new law in June.

“I have instructed all police agencies not to charge it until further notice and my prosecutors to dismiss it if one gets charged by accident,” Erie County District Attorney John Flynn told News 4’s Dave Greber.

The law was put on hold after an Oct. 13 suit by Reverend Dr. Jimmy Hardaway, Jr. and Bishop Larry A. Boyd, in addition to the Firearms Policy Coalition, Inc. and Second Amendment Foundation.

The men wish to keep concealed carry in places of worship in place, “in case of confrontation to both themselves and their congregants. They allege that the provision is unconstitutional, infringing on the right to keep and bear arms in public for self-defense.

DA Flynn said he has no intention of appealing the judge’s order. A spokesperson for Governor Kathy Hochul’s office said the office is reviewing the decision.

The next hearing will take place on Nov. 3.

The full document can be viewed below.

Adam Duke is a digital producer who has been part of the News 4 team since 2021. See more of his work here.