A divided panel of the U.S. Court of Appeals for the Ninth Circuit on Tuesday found that a Hawaii gun regulation that strictly limits permits to openly carry handguns violates the Second Amendment right to keep and bear arms.

Citing heavily from the U.S. Supreme Court’s 2008 District of Columbia v. Heller decision, which struck down handgun restrictions in Washington, D.C., Judge Diarmuid O’Scannlain wrote the Hawaii law, which restricts open carry to people whose jobs entail “protecting life or property,” would by necessity limit open carry permits to “a small and insulated subset of law-abiding citizens.”