diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-08-24 12:53:26 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-08-24 12:53:26 +0200 |
commit | a02f5e61be0357bf56306a7177339ad4e9e3999a (patch) | |
tree | fb678803d403c332a65f2826b0559ee86f13e296 /includes/pages | |
parent | a51bfae6e58a736dacaba0b670cd2dfbd6e942be (diff) |
Edit user: Prevent overwriting first and last name if temporary disabled
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/admin_user.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index 0aa1f161..1c40586f 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -268,8 +268,10 @@ function admin_user() $user_source->name = $nickValidation->getValue(); } $user_source->save(); - $user_source->personalData->first_name = $request->postData('eVorname'); - $user_source->personalData->last_name = $request->postData('eName'); + if (config('enable_user_name')) { + $user_source->personalData->first_name = $request->postData('eVorname'); + $user_source->personalData->last_name = $request->postData('eName'); + } $user_source->personalData->shirt_size = $request->postData('eSize'); $user_source->personalData->save(); $user_source->contact->mobile = $request->postData('eHandy'); |