Smoking weed while breastfeeding?

I was told this isn't allowed? Yet I know moms who do? I'm confused. Can it harm my baby if I do? What can I do if I have smoked? Can pumping help like when you drink?