According to the Minnesota Supreme Court, a state law requiring citizens to have a permit to carry a handgun in public is constitutional and does not violate the Second Amendment.

The ruling was made in the case of Nathan Hatch, who was accused in 2018 of carrying a loaded handgun in a backpack without a permit.

Hatch was approached by airport police after his truck broke down near the Minneapolis–St.Paul International Airport on Jan. 8, 2018, according to court documents. He informed officers he thought there was a handgun in the backpack that he didn’t have permission to carry. Hatch was then taken under custody when officers discovered a loaded, uncased pistol in his backpack. He was accused of illegally carrying or possessing a gun, as reported by Star Tribune.

Hatch claimed that the state’s permit-to-carry law violated his right to keep and bear guns and that it could not survive severe scrutiny because it was not narrowly tailored to further the state’s public safety interests.

The state Supreme Court disagreed, stating that the law does not impose unnecessarily difficult standards for obtaining a permit. Furthermore, the court said that it serves a public interest in controlling public safety.

“Considering the undisputed compelling governmental interest in ensuring public safety and the narrowly tailored provisions of the statute to achieve that interest, we conclude that the permit-to-carry statute withstands strict scrutiny,” the justices ruled. “We therefore hold that the permit-to-carry statute does not violate the Second Amendment to the United States Constitution.”

“(W)e conclude that the permit-to-carry statute is narrowly tailored to serve the compelling governmental interest in ensuring public safety,” the court ruled. “Law-abiding citizens over the age of 21 need only show that they have passed a gun safety course and that they are not a danger to themselves or others to receive a permit to carry a handgun in public.”

The Supreme Court stated a law must be justified by a compelling government interest and be narrowly tailored, which means that it must achieve the government’s goal using the “least restrictive means.”

Minnesota residents can apply for permits through their local sheriff’s department, which must grant one if the applicant meets all conditions and is not prohibited from having firearms, Minnesota Reformer reported.

The Supreme Court determined that the law specifies when a permit is required and provides for exceptions, such as hunting or at home.