This question already has an answer here:
I see that there is a debate whether a person can use canned whipped cream on Shabbat. Refer to This discussion. Suppose that I forbid using canned whipped cream. I am a guest a someone's home and my host feels it's permissible. They serve a desert using the canned whipped cream. Can I eat it, or would I be benefiting from a Jew's melacha as I believe that using the whipped cream is a melacha?