In a blow to medical marijuana advocates, a state appeal court in Los Angeles ruled on Tuesday that a city law regulating the sale of medical pot can’t stand because it interferes with federal enforcement efforts.

The Second District panel concluded that a Long Beach ordinance that allows the city to issue permits for medical marijuana collectives goes beyond California’s decriminalization laws and into uncertain legal territory because of the federal ban on pot.