Skip to content
Snippets Groups Projects
Commit 62ac6f1b authored by Bruno de Oliveira Magalhaes's avatar Bruno de Oliveira Magalhaes Committed by Ivan Trokhanenko
Browse files

Issue #3407066 by uberhacker: Issue exporting : Entity queries must explicitly...

Issue #3407066 by uberhacker: Issue exporting : Entity queries must explicitly set whether the query should be access checked or not
parent 2df45fb3
No related branches found
No related tags found
1 merge request!4Issue #3407066: Entity queries must explicitly set whether the query should be...
......@@ -50,7 +50,10 @@ class MultipleNodeExportForm extends FormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
$export_type = $form_state->getValue('export_type');
// Loads all the node of selected content type.
$nids = \Drupal::entityQuery('node')->condition('type', $export_type)->execute();
$nids = \Drupal::entityQuery('node')
->accessCheck()
->condition('type', $export_type)
->execute();
$batch = [
'title' => $this->t('Generating Export Code...'),
'operations' => [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment