In the Eighteenth Century, the First Founders decided that regulation of firearms is the responsibility of the states. The Second Amendment cedes to the States all power to regulate gun ownership and manage the State militias.
In the Nineteenth Century, the Supreme Court agreed with them. In 1875, the Supreme Court ruled that the Second Amendment does not bar state regulation of firearms.
In United States v. Cruikshank, 92 U.S. 542, 553 (1875), the Court stated that the Second Amendment “has no other effect than to restrict the powers of the national government”.
Later, in Presser v. Illinois, 116 U.S. 252, 265 (1886), the Court reiterated that the Second Amendment “is a limitation only upon the power of Congress and the National government, and not upon that of the States.”
Thus, by law, states can permit, regulate or deny gun ownership as they see fit.