LOS ANGELES (AP) — A judge has blocked a marijuana farmers market in Los Angeles and ordered organizers to shut down their business.

A preliminary injunction was issued Friday against operation of the outdoor medical pot market in the Boyle Heights area. It prevents the market from being held pending a trial at a later date.

READ MORE: Reports Of Freeway Shooting Causes SigAlert, Closure of I-110, I-105 Freeways

The California Heritage Market was held over several weekends earlier this year and attracted big crowds.

But City Attorney Mike Feuer claims the market violates Proposition D, a voter-approved measure that limited the number of medical marijuana dispensaries in the city.

READ MORE: No. 7 UCLA Rolls Over Cal, 81-57, For 5th Straight Win

The judge also ruled that the market’s sponsor, West Coast Collective, violated the measure and ordered it to shut down.

A call to the collective’s attorney, David Welch, wasn’t immediately returned.

MORE NEWS: Holocaust Survivor Recounts Harrowing Experience At 12 Concentration Camps

(© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)