Skip to Content
avatar image
Former Member

How to maintain single user has two roles at a time ?

hi All,

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

nageswara

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 11, 2006 at 11:12 AM

    If the salesrep role is strictly for a different audience based on critical financial data, then why would you have a user with both admin and salesrep roles? Is this for an internal user or external?

    Just trying to understand your scenario a bit better.

    James

    Add comment
    10|10000 characters needed characters exceeded