This commit is contained in:
Yuri Kuznetsov
2021-10-29 15:14:37 +03:00
parent 2afaf8b446
commit 8f93507fec
5 changed files with 17 additions and 7 deletions
@@ -128,6 +128,9 @@ class NoteHookProcessor
// This is correct.
$skipAclCheck = !$note->isAclProcessed();
$teamIdList = null;
$userIdList = null;
if (!$skipAclCheck) {
$teamIdList = $note->getLinkMultipleIdList('teams');
$userIdList = $note->getLinkMultipleIdList('users');
@@ -267,6 +270,8 @@ class NoteHookProcessor
return;
}
$notifyUserIdList = [];
foreach ($targetTeamIdList as $teamId) {
$team = $this->entityManager->getEntity(Team::ENTITY_TYPE, $teamId);