From 8d7a91540d4a3c70e65a55394ff151bf62a9bcfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rub=C3=A9n=20Pineda?= Date: Tue, 9 May 2023 18:23:11 +0200 Subject: [PATCH] Drupal 7, avoid load drupal user blocked in bootstrap This block the possibility to execute the rest API with blocked drupal users --- CRM/Utils/System/Drupal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1