Skip to content

Commit

Permalink
feat(account): reallow kind to be renewed
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed May 25, 2024
1 parent fe6fe1a commit 5c4f086
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ protected static function makeUpdateValidation(User $owner, int $resource_id): V
"id=$resource_id"
])."]"
]);
$validation->setRule("$individual_name.kind", "kind", [
"required",
"min_length[3]",
"max_length[255]",
"in_list[".implode(",", ACCEPTABLE_ACCOUNT_KINDS)."]",
// TODO: Make validation to allow this field if the entity was not yet updated
]);

return $validation;
}
Expand Down

0 comments on commit 5c4f086

Please sign in to comment.