From a10f5e6bf7d5d405027e27b0a3d5fb1ca2c518c0 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 27 Jun 2022 12:58:40 +0200 Subject: [PATCH] (bug) user can change his group in the profile completion page, even if mapped from the SSO --- CHANGELOG.md | 1 + app/frontend/src/javascript/models/user.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9468c86f..d2f7b1bae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Renamed proof-of-identity to supporting-documents in react components and in end-user strings - Fix a bug: when email was mapped from SSO provided as empty string -> unable to merge account - Fix a bug: when an empty data was retured by the SSO, unable to edit it +- Fix a bug: user can change his group in the profile completion page, even if mapped from the SSO - Fix a bug: the birthdate was not marked as required, in the profile edition form - Fix a bug: when the phone or the address were required, they were not marked as this, in the profile edition form - Fix a bug: the birthday was not shown in user edition form diff --git a/app/frontend/src/javascript/models/user.ts b/app/frontend/src/javascript/models/user.ts index d2b3a1c0b..e63d600e5 100644 --- a/app/frontend/src/javascript/models/user.ts +++ b/app/frontend/src/javascript/models/user.ts @@ -121,5 +121,6 @@ export const UserFieldMapping = Object.assign({ 'profile_attributes.interest': 'profile.interest', 'profile_attributes.software_mastered': 'profile.software_mastered', is_allow_contact: 'user.is_allow_contact', - is_allow_newsletter: 'user.is_allow_newsletter' + is_allow_newsletter: 'user.is_allow_newsletter', + group_id: 'user.group_id' }, ...socialMappings);