Mail poslji editor uporabnikom in ne administratorjem.

31-related-concepts
Lio Novelli 2024-03-17 21:09:01 +01:00
parent c809423072
commit 7b397fbcc8
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ function _yufu_admin_get_all_editors_emails() {
$user_storage = \Drupal::entityTypeManager()->getStorage('user'); $user_storage = \Drupal::entityTypeManager()->getStorage('user');
$ids = $user_storage->getQuery() $ids = $user_storage->getQuery()
->condition('status', 1) ->condition('status', 1)
->condition('roles', 'administrator') ->condition('roles', 'editor')
->accessCheck(FALSE) ->accessCheck(FALSE)
->execute(); ->execute();
$editors = $user_storage->loadMultiple($ids); $editors = $user_storage->loadMultiple($ids);