Hello I want to create more group by brand. each group will have its own restrection (view product, view promotion). my question is: how to affect the client in several groups? can we adapt this logic? Thank you.
Basically, you just need to create custom ACL voter if I understand right your question. Here is the doc How to use Voters.
But I can’t understand how did you configure permissions per customer group. As I see there is only role based permissions configuration. Do you automatically create roles for each new group or how did you manage this?
This reply was modified 5 years, 11 months ago by Andrey Yatsenko.
Actually, the problem is that our marketplace is selling products from different brands. We need to enable restriction on brands for clients (using groups or other method). The best will be able to check or uncheck available brand’s product for every customer. Do you think using groups will be the best solution?
Group can have many customers, but you want to configure it per customer.
So it’s better to have new relation form Customer to Brand, you can create it using schema migration as Customer is an extendable entity, let’s call new relation availableBrands, or you can create relation from the Brand side. Depending on your business logic choose what is better here.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.