I have a node which references other nodes.
If I give a user custom access to this node, how do I set it up so that he automatically gets access to those other nodes as well?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are looking to build your own access-module, this piece of API documentation is probably the only place that has somewhat decent documentation on what to look at/for.
Your own custom work will come in on
http://api.drupal.org/api/drupal/developer--examples--node_access_example--node_access_example.module/6and the_updateequivalent. On these hooks/callbacks, you must not only insert the current GRANT, but GRANTS for all the referenced nodes too.