Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mmaranao on
We're trying to setup a project wherein we reference users to nodes and thereby grant user access to these referenced nodes.
We have looked into node reference user reference, but it is the reverse of what we need.
What we have done so far, is added a node reference in the user's fields. Edited the user and selected a referenced node.
Now we need to check if the node is referenced to the authenticated user to grant it access to view it.
We have thought of using the node_access hook but we're wanting to see if there is such a module out there.
Thanks!
Comments
Check with field permission
Check with field permission,
https://www.drupal.org/project/field_permissions