mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Feature: add cc users in workflow: correct constraint validation
This commit is contained in:
parent
8c37afa3a9
commit
6bf8789f85
@ -31,7 +31,7 @@ class WorkflowStepUsersValidator extends ConstraintValidator
|
||||
throw new UnexpectedTypeException($constraint, WorkflowStepUsers::class);
|
||||
}
|
||||
|
||||
foreach($value->getCcUser() as $u) {
|
||||
foreach($value->getDestUser() as $u) {
|
||||
if ($value->getCcUser()->contains($u)) {
|
||||
$this->context
|
||||
->buildViolation($constraint->message)
|
||||
|
@ -11,6 +11,8 @@ A permission is already present for the same role and scope: Une permission est
|
||||
#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."
|
||||
|
||||
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
|
||||
This username or email does not exists: Cet utilisateur ou email n'est pas présent dans la base de donnée
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user