Old userrole mapping still remail remain after renaming role
Hi ivyteam
In my project, i have the role name `Front RM` and i assign some users for it. Then some version later i rename that role to `FrontRM` (remove space). That mean all users will be mapped to `FrontRM`
Now i use `ivy.session.getSessionUser().getRoles()` but it always say that user has two roles `Front RM` and `FrontRM`.
I've investigated then see that there still remain old mapping between user and old role. That's mean when i rename a role, ivy actually add a new role with new name and keep old one with mapping. I explained in this picture:
![alt text][1]
Some questions:
1. Why ivy still keep old role + old mapping? it's because of multiple PMVs? But in case there is only one PMVs so could ivy remove unnecessary role completely?
2. Does api `ivy.session.getSessionUser().getRoles()` return correct roles as it display on Admin Tool? If not can i base on any flag to remove that `inactive` role?
Thanks
[1]: https://answers.axonivy.com/upfiles/Untitled_ksSIFXV.png