User with two different roles
I have an unique problem with my application, I have a user with two different roles "admin" and "salesrep".
I have declared the roles in the initialise() method of my portal application.
Now the problem is that when the user logs in who has both the roles applicable to him admin and salesrep, that is pointing to the admin role and there is a "Null Pointer Exception" coming for the salesrep role.
This is because the "salesrep" role has access to some information that the "admin" role does not have.
Please help me in this issue how to over come this problem.
Thanks and regards