Skip to content
Snippets Groups Projects

Move callback classRemove outside of the loop

2 files
+ 2
0
Compare changes
  • Side-by-side
  • Inline
Files
2
  • fd76e3a7
    Issue #3203809 by jonathanshaw: EntityQuery accessCheck:... · fd76e3a7
    catch authored
    Issue #3203809 by jonathanshaw: EntityQuery accessCheck: ContentModerationState::loadFromModeratedEntity should not be access sensitive
@@ -135,6 +135,7 @@ public static function loadFromModeratedEntity(EntityInterface $entity) {
@@ -135,6 +135,7 @@ public static function loadFromModeratedEntity(EntityInterface $entity) {
$storage = \Drupal::entityTypeManager()->getStorage('content_moderation_state');
$storage = \Drupal::entityTypeManager()->getStorage('content_moderation_state');
$ids = $storage->getQuery()
$ids = $storage->getQuery()
 
->accessCheck(FALSE)
->condition('content_entity_type_id', $entity->getEntityTypeId())
->condition('content_entity_type_id', $entity->getEntityTypeId())
->condition('content_entity_id', $entity->id())
->condition('content_entity_id', $entity->id())
->condition('workflow', $moderation_info->getWorkflowForEntity($entity)->id())
->condition('workflow', $moderation_info->getWorkflowForEntity($entity)->id())
Loading