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: Nearing Historic Strike Vote, Thousands Of Hollywood Workers Could Walk Off Sets Nationwide

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: LA County Increases Water Usage As State Drought Conditions Worsen

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: LAPD Says Armed Robberies Have Become An Alarming Trend

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