I am using Drupal 6.15, Domain Access 6.x-2.2, Domain Access Advanced 6.x-1.0-rc1, and Node Privacy By Role 6.x-1.5.
On my second domain, conference.example.com, there are four blocks generated with Views. When the Domain Access Advanced module is enabled, these blocks will only display for authenticated users and not for anonymous users. Once I disable the module, the blocks display for anonymous users. I have turned off and on the module multiple times to make sure the issue is repeatable.
I've tried to debug where the views might be running into problems and have come up empty.
1. There do not appear to be any MySQL errors generated by the Views.
2. The views are all set to display on the front page of the domain. However, when I change this so that they display on all pages, I have the same issue. The view will only display if the user is logged in.
3. I tried embedding the view in the page using views_embed_view and ran into the same problem. The view would display (embedded) as long as I wasn't logged in as an anonymous user.
4. I tried anonymous users access to all views. This did not solve the problem. The views still did not display for anonymous users.
I've looked and can't seem to find the database queries that are causing the problem. Any advice would be much appreciated.
Comments
Comment #1
JuliaKM commentedLooks like we're closer to identifying the problem.
When I enable Node Privacy By Role, Domain Access, and Domain Access Advanced, and then rebuild permissions, it appears that the node records for my domain aren't being inserted into the node access table.
Comment #2
JuliaKM commentedWe've identified that the problem is actually with how Node Privacy By Role rebuilds permissions. Closing ticket.