Skip to content

Commit

Permalink
feat: VOL-5305 add the new operator-tc user to validation for user cr…
Browse files Browse the repository at this point in the history
…eation (#86)
  • Loading branch information
ilindsay authored Aug 21, 2024
1 parent a736e55 commit 27a0b12
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Command/User/CreateUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ final class CreateUser extends AbstractCommand
* "internal-case-worker",
* "internal-admin",
* "internal-irhp-admin",
* "operator-tc",
* "operator-admin",
* "operator-user",
* "operator-tm",
Expand Down
1 change: 1 addition & 0 deletions src/Command/User/UpdateUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ final class UpdateUser extends AbstractCommand
* "internal-case-worker",
* "internal-admin",
* "internal-irhp-admin",
* "operator-tc",
* "operator-admin",
* "operator-user",
* "operator-tm",
Expand Down
2 changes: 1 addition & 1 deletion src/FieldType/Traits/RolesOptional.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trait RolesOptional
* @Transfer\Filter("Laminas\Filter\StringTrim")
* @Transfer\Validator("Laminas\Validator\InArray",
* options={
* "haystack": {"internal-limited-read-only", "internal-read-only", "internal-case-worker", "internal-admin", "internal-irhp-admin", "operator-admin", "operator-user", "operator-tm", "partner-admin", "partner-user", "local-authority-admin", "local-authority-user", "system-admin"}
* "haystack": {"internal-limited-read-only", "internal-read-only", "internal-case-worker", "internal-admin", "internal-irhp-admin", "operator-tc", "operator-admin", "operator-user", "operator-tm", "partner-admin", "partner-user", "local-authority-admin", "local-authority-user", "system-admin"}
* }
* )
* @Transfer\Optional
Expand Down
1 change: 1 addition & 0 deletions test/Command/User/CreateUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ protected function getValidFieldValues()
"internal-case-worker",
"internal-admin",
"internal-irhp-admin",
"operator-tc",
"operator-admin",
"operator-user",
"operator-tm",
Expand Down
1 change: 1 addition & 0 deletions test/Command/User/UpdateUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ protected function getValidFieldValues()
"internal-case-worker",
"internal-admin",
"internal-irhp-admin",
"operator-tc",
"operator-admin",
"operator-user",
"operator-tm",
Expand Down

0 comments on commit 27a0b12

Please sign in to comment.