Following my question here - http://drupal.org/node/217596#comment-3655498
and the successive comments, I am opening a new issue.

I'd like to deny access to all nodes of a particular content-type, yet to allow access to data (title, body, cck) through Views.

There were a couple of ideas at the referred link above, but they're not complete.
Thanks for helping !

Comments

itserich’s picture

Hello -

I asked a similar question and someone seemed to state access to a node could be denied to certain roles, but access to the data could still be achieved through proper Views permission configuration.

Here is the original comment. Have not tried it yet. Good luck.

http://drupal.org/node/964980#comment-3679838

maruan’s picture

thanks @itserich !

It doesn't look like http://drupal.org/project/field_permissions
would solve this issue for us.

One trick that I found (but don't like it ...) is to not publish those nodes.
Access to unpublished nodes is denied anyway, and their data is still accessible through Views.

I am still looking for a better solution.

itserich’s picture

I think Views access to unpublished nodes seems like a good solution. Very secure, not allowing browsing of nodes.

Is there some reason you don't like it?

dubs’s picture

It would be great if this could be achieved without having to unpublish the nodes. We want to create a digital asset library, and provide imagecache watermarked images on the view, and then the click through (to the node) allows visitors to view and download the original if they have appropriate permissions.

dalehgeist’s picture

If anyone reading this thread wonders how they can deny access to a node to, say, anonymous users, yet still have the node show up in a View for those users, take it from someone who tried five different methods: your best friend is Views 3.x. Use your preferred method of access restriction like Content Access, TAC, or even native, to restrict access to certain nodes. Then, in Views 3.x, go to Advanced Settings > Query Settings, and check "Disable SQL rewriting". This allows data from restricted nodes to be seen by all users, including anonymous ones.

MickL’s picture

Status: Active » Fixed

yaaaay thank you! :)
just check "disable sql rewriting" in a view to show the restricted nodes.

dubs’s picture

Thanks for reporting back with this - that's great!

Status: Fixed » Closed (fixed)
Issue tags: -views, -deny access to nodes, -show data

Automatically closed -- issue fixed for 2 weeks with no activity.