Yes, but the gun IS the weapon, not the flash hider, bayonet lug, etc. Where's their authority to ban non-guns? Can they ban forks?
My point is that once the gun itself is not subject to being banned under the 2nd, it is at best silly to discuss banning its accessories.