summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-08-24 12:53:26 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-08-24 12:53:26 +0200
commita02f5e61be0357bf56306a7177339ad4e9e3999a (patch)
treefb678803d403c332a65f2826b0559ee86f13e296 /includes/pages
parenta51bfae6e58a736dacaba0b670cd2dfbd6e942be (diff)
Edit user: Prevent overwriting first and last name if temporary disabled
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_user.php6
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');