Commit efdd9e58 authored by mkalkbrenner's avatar mkalkbrenner Committed by mkalkbrenner
Browse files

Issue #3253809 by mkalkbrenner: Relying on entity queries to check access by...

Issue #3253809 by mkalkbrenner: Relying on entity queries to check access by default is deprecated in drupal:9.2.0
parent afcd913b
default content deploy import:
description: 'Allows user to import exported content via UI. It will overwrite existing content.'
description: 'Allows user to import any exported content via UI. It will overwrite existing content.'
title: 'Import content'
restrict access: TRUE
default content deploy export:
description: 'Allows user to export any content via UI.'
title: 'Export content'
restrict access: TRUE
......@@ -418,6 +418,7 @@ class Exporter {
if (!$this->skipEntityIds || !in_array($entity_type, $this->skipEntityIds)) {
$this->setEntityTypeId($entity_type);
$query = $this->entityTypeManager->getStorage($entity_type)->getQuery();
$query->accessCheck(FALSE);
$entity_ids = array_values($query->execute());
foreach ($entity_ids as $entity_id) {
......@@ -454,6 +455,7 @@ class Exporter {
// If the Entity IDs option is null then load all IDs.
if (empty($entity_ids)) {
$query = $this->entityTypeManager->getStorage($entity_type)->getQuery();
$query->accessCheck(FALSE);
if ($entity_bundle) {
$query->condition($key_bundle, $entity_bundle);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment