Commit 8bdcc821 authored by catch's avatar catch
Browse files

Issue #3206540 by yechaozheng, longwave: Set access check to FALSE for...

Issue #3206540 by yechaozheng, longwave: Set access check to FALSE for entityQuery of user in user_is_blocked function
parent 77c02d18
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -391,6 +391,7 @@ function _user_role_permissions_update($roles) {
 */
function user_is_blocked($name) {
  return (bool) \Drupal::entityQuery('user')
    ->accessCheck(FALSE)
    ->condition('name', $name)
    ->condition('status', 0)
    ->execute();