There is a discrepancy between the enterprise permissions, the setting of sells = none/own/any and the display of producers and places to buy a producer's products. This was observed first in #9589, partly solved in #9768 and documented and discussed in detail in #9793.
Which type of users does this problem affect (and how many, if known)?
Shoppers
Hub Managers (MCFEs)
Producers
Potential solutions that will solve the problem
It was proposed to implement the following behavior:
Enterprise permissions have higher priority than the setting of sells = none/own/any.
The settings of sells = none/own/any should be updated automatically when enterprise permissions are added.
The display of producers and places to buy a producer's products should happen according to the enterprise permissions
Automatic setting:
Whenever an enterprise is granting permissions to add to an order cycle of another enterprise, set 'producer = yes' for the granting enterprise.
Whenever an enterprise is receiving permissions to add to the own order cycle, set 'sells = any' for the receiving enterprise.
Whenever an enterprise has received no permissions to add to the own order cycle, set 'sells = none' if 'producer = no' for the receiving enterprise. If 'producer = yes' set 'sells = none' or 'sells = own' (depending on what?).
Things to consider (before implementing a solution)
What should happen to the setting of sells = none/own/any if enterprise permissions are deleted?
Keep the setting unchanged?
Downgrade the setting accordingly?
Should there be a warning or an information that and how the sells setting is updated when creating new enterprise permissions?
Is it ok that user A can change the sells setting of user B by setting up enterprise permissions?
Should permissions be removed if a user changes to producer = no?
Which permissions are generated automatically when setting up a new enterprise (with an existing account)?
Do we even need the user to select the sells = own/any setting during registration and on his/her enterprise list when the setting is handled completely automatically? Maybe sell = yes/no is enough because sells = no means it's a profile only and sell = yes means it's a shop or a hub depending on the permissions received.
What is the need / problem?
There is a discrepancy between the enterprise permissions, the setting of sells = none/own/any and the display of producers and places to buy a producer's products. This was observed first in #9589, partly solved in #9768 and documented and discussed in detail in #9793.
Which type of users does this problem affect (and how many, if known)?
Potential solutions that will solve the problem
It was proposed to implement the following behavior:
Automatic setting:
Things to consider (before implementing a solution)
Connected wishlist and discovery discussions
#9589 #9768 #9793
Additional context
Sells setting (super admin only) - /admin/enterprises/ENTERPRISE/edit:
Sells setting (enterprise user) - /admin/enterprises:
Enterprise permissions - /admin/enterprise_relationships:
Display of producers and places to buy a producer's product: