From: Rubén Pineda Date: Tue, 9 May 2023 16:23:11 +0000 (+0200) Subject: Drupal 7, avoid load drupal user blocked in bootstrap X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8d7a91540d4a3c70e65a55394ff151bf62a9bcfb;p=civicrm-core.git Drupal 7, avoid load drupal user blocked in bootstrap This block the possibility to execute the rest API with blocked drupal users --- diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php index a645c8b722..ebb1a37b79 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -538,7 +538,7 @@ AND u.status = 1 if ($uid) { $account = user_load($uid); - if ($account && $account->uid) { + if ($account && $account->uid && $account->status) { global $user; $user = $account; return TRUE;