A federal appeals court has upheld ordinances barring the ownership of handguns in most cases in Chicago and suburban Oak Park.

The three-judge panel of the 7th U.S. Circuit Court of Appeals said Tuesday the Second Amendment guaranteeing the right to bear arms is not an adequate basis for lawsuits attacking local gun ordinances.

The National Rifle Associated argued the Second Amendment makes such ordinances unconstitutional.

The Supreme Court has ruled in a District of Columbia case that the Second Amendment entitles people to keep handguns at home for self protection. The appeals court upheld dismissal of the lawsuit on the ground that the District of Columbia, unlike Chicago and Oak Park, is a federal jurisdiction.