Commit f122c53e authored by catch's avatar catch
Browse files

Issue #3208266 by jonathanshaw: EntityQuery accessCheck: installation code...

Issue #3208266 by jonathanshaw: EntityQuery accessCheck: installation code should not check entity access
parent 1b0a4415
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ function workspaces_install() {
    ->execute();
  if (!empty($admin_roles)) {
    $query = \Drupal::entityTypeManager()->getStorage('user')->getQuery()
      ->accessCheck(FALSE)
      ->condition('roles', $admin_roles, 'IN')
      ->condition('status', 1)
      ->sort('uid', 'ASC')
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ function demo_umami_form_install_configure_submit($form, FormStateInterface $for
function demo_umami_set_users_passwords($admin_password) {
  // Collect the IDs of all users with roles editor or author.
  $ids = \Drupal::entityQuery('user')
    ->accessCheck(FALSE)
    ->condition('roles', ['author', 'editor'], 'IN')
    ->execute();