From f7a0f12e7dc19b24835a97fa8440f0950782bd8f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 15 Jul 2021 10:30:15 +1200 Subject: [PATCH] Minor simplification --- CRM/ACL/API.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CRM/ACL/API.php b/CRM/ACL/API.php index 6319a5a699..a1ffab79e1 100644 --- a/CRM/ACL/API.php +++ b/CRM/ACL/API.php @@ -156,12 +156,7 @@ class CRM_ACL_API { $contactID = CRM_Core_Session::getLoggedInContactID(); } - if (!$contactID) { - // anonymous user - $contactID = 0; - } - - return CRM_ACL_BAO_ACL::group($type, $contactID, $tableName, $allGroups, $includedGroups); + return CRM_ACL_BAO_ACL::group($type, (int) $contactID, $tableName, $allGroups, $includedGroups); } /** -- 2.25.1