In this Nov. 17, 2020, file photo, a worker at the SeaWeed Co. cannabis manufacturing facility in Auburn measures out exactly 3.5 ounces of smoking-grade marijuana before sealing it in a glass jar. Credit: Troy R. Bennett / BDN

PORTLAND, Maine  — A state agency and an industry group are appealing a federal judge’s ruling that allows out-of-state owners of medical marijuana dispensaries.

It appears the case is the first of its kind to reach a federal appeals court, carrying with its possible ramifications for other states, the  Portland Press Herald reported.

The legal question is whether the residency rule violates the U.S. Constitution by restricting interstate commerce.

A federal judge this summer rejected Maine’s requirement that owners of medical marijuana dispensaries be based in Maine.

The state agreed last year to drop the previous residency requirement for recreational marijuana stores, but it is fighting the ruling that overturned that same requirement for medical dispensaries.

The Maine Cannabis Coalition, a nonprofit trade group that supports the residency requirement, is joining the state in supporting the residency requirement.