Skip to Content
avatar image
Former Member

User with two different roles

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

kris

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 09, 2006 at 02:12 PM

    Hi Kris,

    According to the Portal Permission mechanism , The user will have the permission according to the highest permission he got over an object / component.

    e.g. if the user is assigned two roles and one role have read and the other role have Full Control permissions over a specific object, then the user will have full control over this object.

    I think the problem you experience has some other source.

    maybe you can describe the exception in details.

    Best Regards

    Roy

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Kris,

      Is this problem is resolved.....?

      These roles are newly created or some body done previously,now u added some properties now,am I correct...?

      The problem might be users are created in group and assigned authorizations to entire group. now you are searching pirticular role and assign some authorizations or find any such kind of group do u have....

      Or otherwise kindly expalin ur problem again these roles are coming from R/3 or u created in Portal end.

      Thanks,

      Lohi.

  • avatar image
    Former Member
    Oct 06, 2008 at 04:50 AM

    solved.

    regards,

    Kris

    Add comment
    10|10000 characters needed characters exceeded