I have a node type called "Team", and access is not available to anonymous users. However, I need to create a View which contains a directory of Teams, and shows a few Team fields.

Is this possible in Views? I understand that the anonymous user does not have access to the individual fields if they don't first have access to the node. But I need a way to override that, and show some of those read-only fields from the Team node.

Comments

t.lan’s picture

subscribing - similar "use case" with Domain Access. I would like to show references to nodes that are only available on another site.

There is also this one: #807294: Shows users content across all domains

Maybe there could be a switch to exclude the inclusion of node access rights in the configuration of a view?

stevecowie’s picture

I've encountered a similar problem where I don't want anonymous users to view all the fields of a node but do want some to be available. You could use cck field permissions to restrict access to the fields that should be hidden. Another approach I've used is to use the path_access module. In my use case I had dozens of fields to configure and as that seemed really cumbersome, what I've done is given anonymous users the right to access content, but then blocked access to the path being used for the node - this is done with pathauto setting a path for that node type. Now I can build views to expose only those fields that the anonymous users are allowed to view. Bit of a workaround but it seems to work.

iamjon’s picture

joelstein,
Did you ever find a solution for this? If yes please post it so others can benefit.

I asked dereine about this on irc he said
the second one can be done with views3 and can't be done with views2.
the problem is that node_access is applied to every query in views2

To the best of knowledge this cannot be done in views2. Please try views3 or the workaround offered by
stevecowie

iamjon’s picture

Status: Active » Closed (works as designed)

marking this as closed