The California legislature has passed sweeping gun restrictions and on Monday a federal judge ruled the laws passed violate the constitution using the basis of the recently decided Supreme Court case and issued a temporary injunction stopping the laws from going into effect.

California passed a new law called the Unsafe Handgun Act which restricted the purchase of certain handguns based on magazine safety requirements and ammunition micro-stamping. According to Federal District Judge Cormac J. Carney, the new law violates the Second Amendment and now the district attorney of California has two weeks to request a stay or submit an appeal to a higher court.

Carney wrote “Californians have the constitutional right to acquire and use state-of-the-art handguns to protect themselves. They should not be forced to settle for decade-old models of handguns to ensure that they remain safe inside or outside the home.”

California has already had very strict gun laws including restrictions on any guns imported into California for the purpose of being sold, lent, or given away.  The California gun roster requires many tests of the guns in order to be imported and the only exemption was for certain single action revolvers, a relic of today’s modern handgun.

In a press release from the head of California’s Rifle & Pistol Association, Chuck Michel, he claimed “For decades, this ‘roster’ law has deprived law-abiding citizens of the right to choose a handgun appropriate for their individual needs.”

In the newly passed law, handguns would be required to be micro-stamped, forcing all manufacturers to mark all of their ammunition from the weapon as it is fired. The magazine safety requirement would require all manufacturers to make the handguns inoperable when a magazine is not loaded into the gun.

“Because enforcing those requirements implicates the plain text of the Second Amendment, and the government fails to point to any well-established historical analogues that are consistent with them, those requirements are unconstitutional and their enforcement must be preliminarily enjoined,” Judge Carney wrote in his ruling.

In response to the ruling, the California District Attorney Robert Bonta said, “The fact of the matter is, California’s gun safety laws save lives, and California’s Unsafe Handgun Act is no exception. We will continue to lead efforts to advance and defend California’s gun safety laws. As we move forward to determine next steps in this case, Californians should know that this injunction has not gone into effect and that California’s important gun safety requirements related to the Unsafe Handgun Act remain in effect.”