3

I'm trying to limit the access to certain nodes in certain content types by role. So far I wasn't able to find any suitable module that would do just that.

Please take into consideration that content type access by role is not enough (but surely, I'll look into any suggested module that does this too), it must go to the node level. Are you aware of any module that might do it?

This might be another question but since it's so closely related and it could solve my problem I'll put it here too:
I know about nodeaccess, however when I programmatically load nodes using $node = node_load($nid), there's no item in the $node array that suggests node access permissions were set. Everything else is there including those "pesky" CCK fields. Am I doing something wrong here?

Thanks in advance.

6

The Content Access module gives you role permissions at the content type and (optionally) node level. By default, node level permissions are disabled but you can enable it on a type-by-type basis.

If you install ACL module, Content Access can give you per user permissions at the content type and node level.

  • Content Access and ACL was indeed a good advice, thanks for the tip. I still needed to use content_access_get_per_node_settings() to get each user access rules for each node but it worked perfectly after that. – acm Oct 25 '11 at 10:36
2

I use the ACL module as well. I also use Taxonomy Access to limit roles to given taxonomies.

I see you need node level access so Content Access is the way to go. Content Access requires the ACL module.

  • Content Access and ACL was indeed a good advice, thanks for the tip. I still needed to use content_access_get_per_node_settings() to get each user access rules for each node but it worked perfectly after that. – acm Oct 25 '11 at 10:36
0

I can say to stay away from nodeaccess. It seemed okay back in D6 but the upgrade to 7 didn't quite work out well.

0

Be sure to have a look at Flexi Access as well.

It will let you set up and mange ACLs naming individual users that are allowed access to a particular node. The module let you manage access to individual nodes. The administrator may grant individual users the right to: View (read), update (edit/write), and delete the node.

Not the answer you're looking for? Browse other questions tagged or ask your own question.