I'm having the same problem as -- http://drupal.org/node/1269054 -- but in Views 7.x-3.5.
While the details of my issue differ somewhat, the root of my issue runs largely parallel to the issue above. I have a view that will list all events (nodes) that have the same contextual term, as well as events with the child term of that parent term. I apologize if that doesn't make sense. Basically, I'm getting all the events that are related to a department as well as the events for subsequent groups in that department. I am able to get the view to output the correct results, however only for User/1. All other users will see empty results. I've attached a screenshot of my view to give you a better idea for what I've done.
I've checked all permissions and cleared the cache but the problem persists. While researching the issue, someone suggested the root of the problem revolves around the Contextual Filter "Content: Has taxonomy term ID (with depth)". My understanding of the issue is when there is a relationship that includes Taxonomy depth, permissions can't track through the layers of relationships properly. I'm using Organic Groups for access control, which could be a contributing factor but I doubt it. I have several other views similar to this one without any access issues.
I was able to get the results to appear for all users by checking "Disable SQL rewriting" in the Query settings. This disables node access which is not a solution for me. My site is dependent on access control. Again, I've opened all appropriate permissions for users to view the nodes in question and confirmed users can access these nodes. However, these nodes will not display in my View results for any other user but User/1.
Currently I'm running Drupal 7.15
- Views 7.x-3.5
- CTools 7.x-1.2
- Organic Groups 7.x-1.5
Any help on this would be appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| views-screenshot.jpg | 149.34 KB | scottAtRoot802 |
Comments
Comment #1
dawehnerCan you try to disable the caching just for testing?
Comment #2
scottAtRoot802 commentedThanks for the quick reply.
Setting the caching to "none" fixes it. It appears that as long as caching is turned on, in any regard (even if query results and rendered output are set to never cache) the view results are empty. Is there any fix for allowing caching? I can get away with no caching on this view, but I will be creating other views with this contextual filter where caching would be preferred.
Comment #3
mustanggb commented