0

I have a cck user reference field in a content type in drupal 6. I want only the user selected by that field can view the node content.

How can I achieve this?

1 Answer 1

1

Install the User Reference Access module - it directly addresses this requirement:

This module works with CCK userreference fields and the node_access module to add additional grants to nodes.

To enable userref_access on a node, edit the userreference field for the node type and check the "Use User Reference Access" box.

Any users that are referenced by this field will be given view permissions for the node, all other useres will be denied access to the node.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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