Percocet while breastfeeding

Lacey
I had my wisdom teeth taken out and prescribed percocet. The surgeon said it was fine while breastfeeding but the pharmacist said it wasn't recommended. Has anyone taken this and an ok from your dr