A federal appeals court has ruled that permits allowing people to carry concealed weapons are not protected by the Second Amendment.