From 3e48f1cc5518a9a7f31f4112942a6e3ee5e31c5b Mon Sep 17 00:00:00 2001 From: Mark Jarrell <mjarrell@richlandlibrary.com> Date: Thu, 27 Jul 2023 10:13:49 -0400 Subject: [PATCH] Updates queries to work with D10. --- polaris.module | 1 + src/EventSubscriber/PolarisPatronEventSubscriber.php | 1 + 2 files changed, 2 insertions(+) diff --git a/polaris.module b/polaris.module index 022a0f3..a415de1 100644 --- a/polaris.module +++ b/polaris.module @@ -186,6 +186,7 @@ function polaris_room_reservation_form_validate(&$form, FormStateInterface $form $input = $form_state->getUserInput(); $field_user = $input['field_user'][0]['target_id']; $id = \Drupal::entityQuery('user') + ->accessCheck(FALSE) ->condition('name', $field_user) ->execute(); diff --git a/src/EventSubscriber/PolarisPatronEventSubscriber.php b/src/EventSubscriber/PolarisPatronEventSubscriber.php index c4f5e56..c292fb8 100644 --- a/src/EventSubscriber/PolarisPatronEventSubscriber.php +++ b/src/EventSubscriber/PolarisPatronEventSubscriber.php @@ -102,6 +102,7 @@ class PolarisPatronEventSubscriber implements EventSubscriberInterface { */ private function getLocation(\StdClass $data) { $query = $this->entityTypeManager->getStorage('node')->getQuery() + ->accessCheck(TRUE) ->condition('type', 'location') ->condition('field_polaris_id', $data->PatronOrgID, '=') ->execute(); -- GitLab