Skip to content

Commit

Permalink
[Unregistration] increase app-version for required reason
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano committed Jan 30, 2025
1 parent f9512c5 commit 8db98c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/api/profile.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ Feature:

Scenario: As a logged-in user with new app version I can not unregister with empty body
Given I am logged with "[email protected]" via OAuth client "JeMengage Mobile"
And I add "X-App-Version" header equal to "v5.11.0"
And I add "X-App-Version" header equal to "v5.18.0#0"
When I send a "POST" request to "/api/v3/profile/unregister"
Then the response status code should be 400

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Api/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function terminateMembershipAction(
/** @var Adherent $user */
$validationGroups = [$user->isRenaissanceAdherent() ? 'unregister_adherent' : 'unregister_user'];

if ($user->getAuthAppVersion() >= 5110000) {
if ($user->getAuthAppVersion() >= 5180000) {
$validationGroups[] = 'unregister';
}

Expand Down

0 comments on commit 8db98c2

Please sign in to comment.