The 2nd amendment was added to the Constitution as to prevent this infringement of the rights of the people via 10th amendment promotion.
As another poster pointed out, the 9th Circuit ruled that the 2nd Amendment is incorporated to the states. As to whether this means the states are required to allow CCW, that's another story.