fix: user & person save
This commit is contained in:
parent
7deec14a11
commit
dc95b06c6e
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ public class UserService {
|
||||||
userToSave.setEmail(user.getEmail());
|
userToSave.setEmail(user.getEmail());
|
||||||
userToSave.setUsername(user.getUsername());
|
userToSave.setUsername(user.getUsername());
|
||||||
userToSave.setPassword(user.getPassword());
|
userToSave.setPassword(user.getPassword());
|
||||||
|
userToSave.setRoles(user.getRoles());
|
||||||
} else {
|
} else {
|
||||||
// If user does not exist, save the new user entity
|
// If user does not exist, save the new user entity
|
||||||
userToSave = user;
|
userToSave = user;
|
||||||
|
|
Loading…
Reference in a new issue