Note that it says "the right of the people" (as a whole), not the right of "people" (all of them).
The right is not there for everyone. It's only applicable inasmuch as you are part of the militia, and can be restricted if you're not.
Regulating the militia (just like saying what e.g. is due process) is up to the law, and can be arbitrarily restrictive as long as the overall right of the American people to form an armed militia is not infringed. For example, prohibiting hunting would be just fine.
The right is not there for everyone. It's only applicable inasmuch as you are part of the militia, and can be restricted if you're not.
Regulating the militia (just like saying what e.g. is due process) is up to the law, and can be arbitrarily restrictive as long as the overall right of the American people to form an armed militia is not infringed. For example, prohibiting hunting would be just fine.