U.S. District Court Judge Cormac Carney came down clearly on the side of the Second Amendment Wednesday, and his ruling is being celebrated by a prominent California law enforcement authority.

Carney issued a preliminary injunction against California’s controversial SB2, a new law set to take effect Jan. 1. It would create no less than 26 categories of “sensitive places” in the state where licensed concealed carry holders could not exercise their legal rights.

His ruling was a blow to gun control zealots, particularly Gov. Gavin Newsom (D), who signed the bill into law in September. But for one man charged with upholding the law and protecting California citizens, it was a welcome breath of fresh air.

Shasta County Sheriff Michael Johnson expressed his gratitude for Judge Carney’s bold decision. 

Speaking to ABC 7, the lawman declared, “We’re pleased that a federal judge blocked part of SB2 because, in my opinion and the opinion of many sheriffs across the state, SB2 is unconstitutional. It is, without a doubt, a direct attack on concealed weapons permit holders and the ability to and right to bear firearms.”

Johnson confirmed his department will abide by the sections of the new law that withstood judicial scrutiny.

California Attorney General Rob Bonta announced last week that the state will appeal Carney’s decision.

The author of the new law, state Sen. Anthony Portantino (D), said he was encouraged that part of the bill survived. “I think it is important to highlight that, though I was disappointed in the judge’s decision, the judge only blocked a portion of the bill.”

He noted that other features concerning training, permits and age limits remain intact.

Still, the injunction is a win for California’s carry permit holders. If the pending appeal is rejected, it will ensure the right to keep and bear arms remains in effect, even in the Golden State.