From b46c6d76a56af816daa76cb95170f8b70bd42f15 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 9 Sep 2024 13:30:51 +0300 Subject: [PATCH] case portal user follow acl check --- application/Espo/Modules/Crm/Hooks/CaseObj/Contacts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/Espo/Modules/Crm/Hooks/CaseObj/Contacts.php b/application/Espo/Modules/Crm/Hooks/CaseObj/Contacts.php index f5c4750b0b..064c4cc688 100644 --- a/application/Espo/Modules/Crm/Hooks/CaseObj/Contacts.php +++ b/application/Espo/Modules/Crm/Hooks/CaseObj/Contacts.php @@ -106,7 +106,8 @@ class Contacts implements AfterSave ->findOne(); if ($portalUser) { - $this->getStreamService()->followEntity($entity, $portalUser->getId(), true); + // @todo Solve ACL check issue when a user is in multiple portals. + $this->getStreamService()->followEntity($entity, $portalUser->getId()); } if (in_array($contactId, $contactIdList)) {