the second is an individual right with no requirement one be in the militia. But as to the Militia by federal laq that is everyone able bodied that is 17 to 45. If you bar them from weapons that violates the militia act.
Perpich v. Department of Defense, 496 U.S. 334 (1990) so states in the majority opinion:
"Two conflicting themes are apparent from the phrases of the second Militia Clause: complementarily, a partnership between the States and the Federal Government, and subordinately, the supremacy of federal power in the area of military affairs...
The two parts of the Clause are consistent with the view that the Framers anticipated that the militia would be trained according to federal standards, but that the training itself would be conducted by state officers. The congressional power 'To provide for organizing, arming, and disciplining, the Militia' is, in terms, quite broad."
A the pre-Heller “militia-centric” reading of the Second Amendment does not mean private citizens could not own firearms. It means the constitutional right, as pre-Heller Supreme Court doctrine was often understood, was tied to militia-related purposes rather than a freestanding individual self-defense right. Where I think second amendment advocates get confused is that they think pre heller, that the second amendment's 'right' guaranteed men and women outside of the militia gun ownership. It is just that although it wasn't a broad unlimited individual right, individuals were not banned from owning guns no more than they were banned from owning horses, chickens, and cows. Unless, of course, towns and cities banned certain guns, which many throughout the west, historically through the 19th century up to before Heller, they did.
IOW, proof is the degree of regulation that existed before Heller, that became moot after Heller.