openfoodnetwork
openfoodnetwork copied to clipboard
[Admin][Permissions] A hub receiving permission from a producer shop lists the shop as a place to buy the hub's products
Description
This one is similar to (or already covered by) #9589.
A producer hub's products can't be bought at another producer shop because by definition the producer shop can only sell own products. But as can be seen in the screenshots below, the producer shop is listed as an opportunity to buy the producer hub's products.
Expected Behavior
On pages /producers and /map (hub profile/modal) the producer shop, who granted permission to the producer hub, should not be listed as a place to buy the hub's products.
Actual Behaviour
On pages /producers and /map (hub profile/modal) the producer shop, who granted permission to the producer hub, is listed as a place to buy the hub's products.
Steps to Reproduce
- As a producer shop (producer + 'sells own') grant permission to a producer hub to add products to the order cycle.
- See that the producer shop is listed as a place to buy the producer hub's products on pages /producers and /map (hub profile/modal)
Animated Gif/Screenshot
page /admin/enterprise_relationships
page /producers
page /map (hub profile/modal)
Workaround
See description above.
Severity
bug-s3: a feature is broken but there is a workaround
Your Environment
- Version used:
- Browser name and version:
- Operating System and version (desktop or mobile):