Is it lawful to accept invitations that involve Munkar when change unavoidable?

Q 2: In Morocco, some weddings are held where people are invited to attend, and it is an obligation to attend according to the Hadith of the Prophet (peace be upon him). However, many Bid`ahs (innovations in religion) and prohibitions take place. Is it obligatory to attend such weddings?

A: If the person who is invited to a wedding is able to prevent the sins that take place, he should attend for this purpose. Otherwise, he should not accept the invitation. May Allah grant us success. May peace and blessings be upon our Prophet, his family and Companions.