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