The Dutch government has scrapped a planned “weed pass” designed to keep foreigners out of the nation’s cannabis-selling coffee shops.

In the south of the country, beginning earlier this year, locals had to apply for a pass to get into such shops but non-Dutch residents were barred, in an effort to crack down on widespread drug tourism in the region.

But justice minister Ivo Opstelten said the passes are being immediately scrapped. He said it will be up to local authorities to keep foreigners out of the drug cafes.

It appears to be a compromise that leaves the door open to Amsterdam to keep letting tourists visit its world famous cafes, where cannabis, marijuana and pre-rolled joints are sold alongside cups of coffee.