Feature: add cc users in workflow: correct constraint validation

This commit is contained in:
nobohan 2023-03-29 21:07:25 +02:00
parent 8c37afa3a9
commit 6bf8789f85
2 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class WorkflowStepUsersValidator extends ConstraintValidator
throw new UnexpectedTypeException($constraint, WorkflowStepUsers::class); throw new UnexpectedTypeException($constraint, WorkflowStepUsers::class);
} }
foreach($value->getCcUser() as $u) { foreach($value->getDestUser() as $u) {
if ($value->getCcUser()->contains($u)) { if ($value->getCcUser()->contains($u)) {
$this->context $this->context
->buildViolation($constraint->message) ->buildViolation($constraint->message)

View File

@ -11,6 +11,8 @@ A permission is already present for the same role and scope: Une permission est
#UserCircleConsistency #UserCircleConsistency
"{{ username }} is not allowed to see entities published in this circle": "{{ username }} n'est pas autorisé à voir l'élément publié dans ce cercle." "{{ username }} is not allowed to see entities published in this circle": "{{ username }} n'est pas autorisé à voir l'élément publié dans ce cercle."
The user in cc cannot be a dest user in the same workflow step: Un utilisateur en Cc ne peut pas être un utilisateur qui valide.
#password request #password request
This username or email does not exists: Cet utilisateur ou email n'est pas présent dans la base de donnée This username or email does not exists: Cet utilisateur ou email n'est pas présent dans la base de donnée