diff --git a/src/main/java/com/application/munera/services/UserService.java b/src/main/java/com/application/munera/services/UserService.java index a313ab2..459c4cc 100644 --- a/src/main/java/com/application/munera/services/UserService.java +++ b/src/main/java/com/application/munera/services/UserService.java @@ -93,6 +93,7 @@ public class UserService { userToSave.setEmail(user.getEmail()); userToSave.setUsername(user.getUsername()); userToSave.setPassword(user.getPassword()); + userToSave.setRoles(user.getRoles()); } else { // If user does not exist, save the new user entity userToSave = user;