A federal appeals court has ruled that a civil rights group cannot sue over a Mississippi city’s ordinance requiring officials to fly the state flag—which prominently features the Confederate battle flag as part of its design—over city-owned facilities.

A three-judge panel of the U.S. Court of Appeals for the Fifth Circuit on Monday affirmed a ruling from the U.S. District Court for the Southern District of Mississippi that dismissed the lawsuit on summary judgment.