Skip to content

Commit

Permalink
feat: adding operator-tc to haystack (#91)
Browse files Browse the repository at this point in the history
* feat: add operator-tc to haystack

* fix: add `operator-tc` to `UpdateUserSelfserve` haystack

Signed-off-by: Gabriel Guimaraes <[email protected]>

---------

Signed-off-by: Gabriel Guimaraes <[email protected]>
  • Loading branch information
gabrielg2020 authored Oct 9, 2024
1 parent 8eea158 commit 6928f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Command/User/CreateUserSelfserve.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Command/User/UpdateUserSelfserve.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6928f78

Please sign in to comment.