Mail poslji editor uporabnikom in ne administratorjem.
parent
c809423072
commit
7b397fbcc8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue