entity workflow: handle sending an access key by email

This commit is contained in:
2022-02-24 21:53:05 +01:00
parent ff1ff8f5bb
commit 1479e2ae9a
13 changed files with 188 additions and 40 deletions

View File

@@ -142,7 +142,7 @@ class EntityWorkflowStep
public function addDestUserByAccessKey(User $user): self
{
if (!$this->destUserByAccessKey->contains($user)) {
if (!$this->destUserByAccessKey->contains($user) && !$this->destUser->contains($user)) {
$this->destUserByAccessKey[] = $user;
$this->getEntityWorkflow()
->addSubscriberToFinal($user)