When creating a View that displays Product variation values, no values are shown for the Anon user, but they are shown for User 1.

Views checks access('view') for each field it displays, but currently there is no way to give users View permissions for Product variation values because ProductAttributeValue doesn't have a access and permission provider handlers set.

Adding these handlers and giving the anon user the view permission solves this problem for me.

CommentFileSizeAuthor
#3 2835078-3.patch775 byteslendude
#2 2835078-2.patch843 byteslendude

Comments

Lendude created an issue. See original summary.

lendude’s picture

Status: Active » Needs review
StatusFileSize
new843 bytes

Patch for this.

lendude’s picture

StatusFileSize
new775 bytes

@bojanz thanks for the feedback on IRC, re-roll with EmbeddedEntityAccessControlHandler

Manually tested this and fixes the problem.

bojanz’s picture

Title: ProductAttributeValue doesn't have a access and permission provider handler. » ProductAttributeValue doesn't have an access handler.

  • bojanz committed d67dca1 on 8.x-2.x authored by Lendude
    Issue #2835078 by Lendude: ProductAttributeValue doesn't have an access...
bojanz’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.