SoD prevent from adding to cart

Some permission in mutliple roles can cause to violate SoD, is there a mechanisum or configuration in one identity to prevent this? please point to the relevant guide if possible.

thanks in advance .