It's a rhetorical question used to say that it's rare for someone to reject something good when it's offered. The literal translation is 'Who would be upset by a sweet?'
Examples
- Spanish: Me ofrecieron un ascenso en el trabajo, y ¿a quién le amarga un dulce?
- English: I was offered a promotion at work, and who would refuse something good?