From 6928f78efb9ee6dfd9ac53c39ac1bc8fd6d29388 Mon Sep 17 00:00:00 2001 From: Gabriel Guimaraes <80750139+gabrielg2020@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:17:43 +0100 Subject: [PATCH] feat: adding `operator-tc` to haystack (#91) * feat: add operator-tc to haystack * fix: add `operator-tc` to `UpdateUserSelfserve` haystack Signed-off-by: Gabriel Guimaraes <80750139+gabrielg2020@users.noreply.github.com> --------- Signed-off-by: Gabriel Guimaraes <80750139+gabrielg2020@users.noreply.github.com> --- src/Command/User/CreateUserSelfserve.php | 2 +- src/Command/User/UpdateUserSelfserve.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/User/CreateUserSelfserve.php b/src/Command/User/CreateUserSelfserve.php index 23e91688..9f33377c 100644 --- a/src/Command/User/CreateUserSelfserve.php +++ b/src/Command/User/CreateUserSelfserve.php @@ -31,7 +31,7 @@ final class CreateUserSelfserve extends AbstractCommand /** * @Transfer\Filter("Laminas\Filter\StringTrim") - * @Transfer\Validator("Laminas\Validator\InArray", options={"haystack": {"admin", "user"}}) + * @Transfer\Validator("Laminas\Validator\InArray", options={"haystack": {"admin", "user", "operator-tc"}}) */ protected $permission; diff --git a/src/Command/User/UpdateUserSelfserve.php b/src/Command/User/UpdateUserSelfserve.php index 98a36ff7..2dbd883f 100644 --- a/src/Command/User/UpdateUserSelfserve.php +++ b/src/Command/User/UpdateUserSelfserve.php @@ -39,7 +39,7 @@ final class UpdateUserSelfserve extends AbstractCommand /** * @Transfer\Filter("Laminas\Filter\StringTrim") - * @Transfer\Validator("Laminas\Validator\InArray", options={"haystack": {"admin", "user", "tm"}}) + * @Transfer\Validator("Laminas\Validator\InArray", options={"haystack": {"admin", "user", "tm", "operator-tc"}}) */ protected $permission;