I'm using spring-security
to authenticate my user, until now, I want to be able to change the user role for managed bean
, does anyone have an idea?
Type I have several modules and each user has a role for each module then when he clicks on the module I want to get the session user to see the database what his role is and then move to the module.
Thatis,IhaveascreenwheretheuserlogsintothesystemandthemodulesthathehasaccesstoappearbutIdidnotloadhispermissionsineachmodulewhenIclickonthemoduleIwanttogotothebankandgettherolethathasaccesstothismodulemodule,belowthescreenexample:
You will see that I have a user logged in with the role_root and when he clicks the SAR he has to have the role_user.