Is just the record in the node_access table enough to determine who has access to a node
work77 - November 4, 2009 - 23:56
| Project: | Node Access User Reference |
| Version: | 6.x-2.5 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Does anyone know what the purpose is of the content_field_user_ref (your name may vary) table that the nodeaccess_userreference module manages. Since the module also populates the node_access table with the same values, it seems redundant. Isn't the record in node_access sufficient to determine whether a user has access to a node, and also sufficient to furnish any node-access-related form elements? So what is the purpose of the content_field_user_ref table? I've been struggling with this for a while. Im trying to create my own node access module, and want to be sure that manipulating just the node_access records will be enough.
Thanks Much.

#1
bump
#2
The record in the content_whatever table is made by the content module, as with any userreference field. This allows you to display the information in the node, views, templates, or you can use the data to make decision in php, all without accessing the node access tables. That is what is unique about this node access module, and it has nothing to do with node access modules in general.