Skip to content

Commit

Permalink
Plugin: fixate user data
Browse files Browse the repository at this point in the history
  • Loading branch information
CatoTH committed Sep 16, 2023
1 parent 93d267f commit 0d32347
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/egp_usersync/UserSyncService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand All @@ -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;
Expand Down

0 comments on commit 0d32347

Please sign in to comment.