I created a Product listing view with Add to Cart Buttons. The view displays perfectly for the Super User, but it is not displaying for Anonymous or Authenticated users.I do have a relationship "referenced product" but it is still not working for anonymous users.

What I did to solve the problem is to go to the permissions page and give everybody the "view all products" permission. This works. BUT: It might open up a security issue. Please let me know what am I doing wrong?

  • give view all products permission to all user but set permission for checkout also check drupal.org/node/1276450 there is patch for it
    – Naveen
    Jul 28, 2016 at 11:59
  • I already did that but on permission page there is also a Warning: Give to trusted roles only; this permission has security implications.
    – fanatic
    Jul 28, 2016 at 12:03
  • check drupal.org/node/1276450
    – Naveen
    Jul 28, 2016 at 12:05
  • it is the best solution by permission?
    – fanatic
    Jul 28, 2016 at 12:13

1 Answer 1


Inspired by what's written in some of the comments to issue nr 1276450, such as in comment nr 158 of it:

edit your View: > "Advanced" > "Query settings" : check "Disable Query Rewriting"

enter image description here

For sure worth trying to see if it helps in your case. If it does, it'll be way better then the permission you granted as described in your question I think.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.