Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a View that uses a Product Reference relationship from the Commerce module. I need to do this because Commerce keeps product pricing information in a product entity rather than in the product display node. The View pulls in other fields (title, body) that have nothing to do with the Product Reference relationship. The view works correctly if I am logged in as administrator, but returns no results to anonymous or authenticated users. Access controls in the view are set to none. I am not sure if this is a bug or if I am missing a setting someplace.
Comments
Comment #1
agentrickardAre you adding fields, filters or contextual filters owned by Domain Views?
That is, are any elements of the View prefixed with 'Domain'?
If not, this is not relevant to this module and should be moved to the Commerce queue.
Comment #2
davidcorn CreditAttribution: davidcorn commentedNegative. Everything comes from nodes or entities. Thanks.
Comment #3
agentrickardUse Devel Node Access to debug. Then either move of close this issue, please.
Comment #4
davidcorn CreditAttribution: davidcorn commentedComment #5
Fernly CreditAttribution: Fernly commentedI don't know if it helps but you never know.. Do anonymous users have permission to view products?
Comment #6
heshanlkDisable Query Rewritting worked for me.
Comment #7
JThan CreditAttribution: JThan commentedTHX for that heshan.lk. I had to disable Query rewriting too. If I find some time, I will investigate further.
Comment #8
dropchew CreditAttribution: dropchew commentedWill there be any complications if we disable Query rewriting for a vew? From the description its says
...
rgds,