In medieval France at least, the occupation of apothecary was severely restricted by law and required a licence to be lawful (such licences appeared first in Montpellier in the 12th century, probably under the influence of the then famous academy of medicine established there then spread in the rest of France). These licences typically incorporated a prohibition on selling poisons broadly defined as substances able to cause physical harm (more generally, it seems that French people in the Middle Ages and Renaissance were panicked by poisons). Though the ban typically does not contain any detailed list, I think it is reasonable to surmise that hallucinogenic substances would have been considered harmful, as hallucinations were considered diabolical in medieval christian thoughts, and thus to infer that these edicts broadly banned the selling of drugs.
So taking into account that not so many hallucinogenic substances would have been accessible to medieval Frenchmen anyway, it seems that selling them, at the very least, would have been prohibited.
UPDATE:
Piqued by Lennart Regebro's critique, I provide evidence that hallucinogenic substances were prohibited in France during the middle ages. Though there are a few references to cannabaceae (for instance in the books of Hildegarde von Bingen) and opiates (mostly through arabic sources 3) in western middle ages pharmacy, the hallucinogenic substances (outside alcohol) most commonly referenced in middle ages sources derive from the alkaloids naturally present in plants of the solanaceae or apiaceae families. A handful of those were common enough so as to warrant a place of choice in the iconography of western middle ages: belladonna, mandrake, Hyoscyamus and hemlock. The first two in particular can induce narcose and hallucinations and all of them were widely used in middle age pharmacy 3. Many of the edicts mentioned above explicitly restrict the manipulation of mandrake and belladonna to licensed apothecary and their administration to licensed doctors. Hyoscyamus and hemlock were among the most common poisons in the middle ages so obviously fell under the scope of the edicts.
Incidentally, I found in searching for evidence of cannabic use in the middle ages that L.Lewin claims in 4 (chapter Indian Hamp) that cannabis use was prohibited by Emir Sheikouni in 1378, but I was utterly unable to find any outside confirmation of this much repeated factoid (nor in fact to identify this emir).
Sources:
Society d'Histoire de la Pharmacie
Histoire des poisons: Moyen Age (strangely, the English version is very poor in comparison)
References to Bamberg's medical compendium
Phantastica Narcotic and Stimulating Drugs, By Louis Lewin 1924