diff -u b/plugins/efq_finder.inc b/plugins/efq_finder.inc --- b/plugins/efq_finder.inc +++ b/plugins/efq_finder.inc @@ -37,6 +37,13 @@ '#attributes' => array('class' => array('no-js')), ); + $bypass_entity_access = _feeds_tamper_efq_finder_get_value('bypass_entity_access', $form_state, $settings); + $form['bypass_entity_access'] = array( + '#type' => 'checkbox', + '#title' => t('Bypass entity access'), + '#default_value' => $bypass_entity_access, + ); + $form['entity_type'] = array( '#type' => 'select', '#title' => t('Entity type'), @@ -214,6 +221,9 @@ else { $query->fieldCondition($settings['field'], $settings['column'], $field); } + if ($settings['bypass_entity_access']) { + $query->addMetaData('account', user_load(1)); + } $query->range(0, 1); $query_result = $query->execute();