Get all the latest news on coronavirus and more delivered daily to your inbox. Sign up here.

The National Rifle Association (NRA) on Friday filed a federal lawsuit against California Gov. Gavin Newsom and Los Angeles County Sheriff Alexander Villanueva after the state's order to close nonessential businesses has affected firearms retailers.

On Wednesday, Newsom's order allowed county sheriffs to make discretionary decisions about labeling gun stores as essential businesses.

Villaneuva initially ordered gun retailers closed under the edict, but then reversed himself, and later changed his mind again, rendering them shuttered, according to Bloomberg News.

The NRA cited "constitutional violations" by the state government and said in a statement on its NRA Institute for Legislative Action [NRA-ILA] website that it would be joining other Second Amendment groups and activists -- and other businesses, in filing the suit.

THOMAS MASSIE DEFENDS CONTROVERSIAL CORONAVIRUS AID ROLL-CALL REQUEST

“Municipalities who target lawful gun stores for closure aren’t promoting safety -- by weaponizing their politics to disarm you and your loved ones, these shameless partisans are recklessly promoting a gun-control agenda that suffocates your self-defense rights when you need them most," Jason Ouimet, the NRA-ILA's executive director, said in a statement Friday.

"NRA members recognize these unlawful power-grabs for what they are."

The lawsuit argues that closing gun stores violates the Second Amendment right to keep and bear arms, and that licensees are to be deemed "essential" places of business as they provide access to that right.

It also cites the Fourteenth Amendment, which reads in part that "no state shall make or enforce any law which shall abridge the privileges or immunities of citizens of the United States."

On the other side of the country, Pennsylvania Gov. Tom Wolf was served with a lawsuit last week claiming his executive order closing all "non-life-sustaining" businesses violated the Second Amendment, as it did not originally allow gun stores to continue operation.

Last week, the Commonwealth's Supreme Court ruled in a divided decision against a Lancaster County gun shop owner and a gun buyer from the Philadelphia suburbs.

But shortly thereafter, Wolf allowed gun stores some limited reopening abilities.

Retailers may now sell guns by appointment only during limited hours, so long as social distancing is practiced, according to FOX 29.

An attorney in the Supreme Court case, Joshua Prince, credited a dissenting opinion from Commonwealth Supreme Court Justice David Wecht and two other justices, who wrote that the initial policy indicated an "absolute and indefinite prohibition upon the acquisition of firearms by the citizens of this commonwealth."

CLICK HERE TO GET THE FOX NEWS APP

Wecht wrote that such a move created "clear tension" with the Pennsylvania State Constitution and the Second Amendment.

A spokeswoman for Wolf told FOX 29 on Tuesday that the adjusted policy was developed "following review of the Supreme Court's decision."

The NRA-ILA also praised the Wecht dissent in a statement on its website.

Businesses in the state are also able to file a request for a waiver from the government if they would like to petition to keep their brick-and-mortar businesses open if originally deemed "non-life-sustaining."