Fix an indexation problem of nodes with limited access fields
This commit is contained in:
parent
c7c7976695
commit
217854206c
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ function content_field($op, &$node, $field, &$items, $teaser, $page, $wrappers =
|
|||
'#type' => 'content_field',
|
||||
'#title' => check_plain(t($field['widget']['label'])),
|
||||
'#field_name' => $field['field_name'],
|
||||
'#access' => $formatter_name != 'hidden' && content_access('view', $field, NULL, $node),
|
||||
'#access' => $formatter_name != 'hidden' && ($context == NODE_BUILD_SEARCH_INDEX || content_access('view', $field, NULL, $node)),
|
||||
'#label_display' => $label_display,
|
||||
'#node' => $node,
|
||||
'#teaser' => $teaser,
|
||||
|
|
Reference in a new issue