The Heller case, if I recall correctly, said membership in the National Guard was not a prerequisite, because in general the 'people' themselves had a right. The rest of the ruling DID allow for individual and groups of individuals to be denied (felons for example are a group).
The ruling...