openfoodnetwork icon indicating copy to clipboard operation
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

Open drummer83 opened this issue 2 years ago • 0 comments

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

  1. As a producer shop (producer + 'sells own') grant permission to a producer hub to add products to the order cycle.
  2. 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 image

page /producers image

page /map (hub profile/modal) image

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):

Possible Fix

drummer83 avatar Oct 07 '22 18:10 drummer83