From 0d323475fa10e587ab878f515d50820748c470ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Ho=CC=88=C3=9Fl?= Date: Sat, 16 Sep 2023 11:49:32 +0200 Subject: [PATCH] Plugin: fixate user data --- plugins/egp_usersync/UserSyncService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/egp_usersync/UserSyncService.php b/plugins/egp_usersync/UserSyncService.php index b8911cf754..4a7ad0034b 100644 --- a/plugins/egp_usersync/UserSyncService.php +++ b/plugins/egp_usersync/UserSyncService.php @@ -78,6 +78,7 @@ private function syncUserList(UserList $userList): array $dbUser->nameGiven = $user->getName(); $dbUser->name = $user->getName() . ' ' . $user->getLastName(); $dbUser->organization = $user->getParty(); + $dbUser->fixedData = User::FIXED_NAME | User::FIXED_ORGA; $dbUser->save(); } $unchanged++; @@ -100,6 +101,10 @@ private function syncUserList(UserList $userList): array [$userGroup], \Yii::t('admin', 'siteacc_email_text_pre') ); + + $dbUser->fixedData = User::FIXED_NAME | User::FIXED_ORGA; + $dbUser->save(); + $invited++; } $newUserIds[] = $dbUser->id;