Closed (fixed)
Project:
Node access user reference
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2011 at 10:54 UTC
Updated:
5 Jun 2011 at 12:10 UTC
The module checks each bundle for fields when processing a node, instead the first bit of nodeaccess_userreference_node_access_records() should be like this:
$grants = array();
$bundle_name = $node->type;
$fields = field_info_instances('node', $bundle_name);
foreach ($fields as $field) {
Comments
Comment #1
danielb commented