By jasonbunnell on
I would like to know how to restrict access to one or more nodes. I thought I would be able to do this under User Managment > Permissions, but I can only grant/deny access to specific roles. The only option is "access content", but I don't want to restrict access to all the content, just specific content.
Thanks,
Jason
Comments
specific content types
To work around this issue, I might create another content type. Then I grant permissions to that type.
Re: specific content types
I created a content type called restrictedcontent that is set up just like a Page. I went to User Management > Permissions and there is 'access content' and 'create restrictedcontent' but I do not see how I can grant privileges to access the restricted content type. Any other ideas?
module content_access
I'm still learning about Drupal, but there seems to be many modules that allow granting priviledges on a node basis. I've been experimenting with content_access. It does exactly what you want to do.
_
If you want to restrict read access, you need to add one of the many available access control modules. Which one you choose is related to how you want to restrict access-- from what you say above, I would look at the http://drupal.org/project/simple_access or http://drupal.org/project/node_privacy_byrole modules.
different content access modules
I should have known that the solution was a module! OK! Thanks! Does anyone know what the differences are between content access and simple access? What should one consider before using one over another?
Access Control List
Content access allows you to optionnaly set rights by access control list where you can specify individual users (with module acl). In my case, I don't want to go so far. I'm quite content to set rights by role, so I'll try node_privacy_byrole. In the documentation for node_privacy_byrole, there is a comment which talks about differences between node_privacy_byrole and content_access.
I don't know about simple_access, but I'll be sure to try it as well.