8 Replies Latest reply on Aug 15, 2007 2:52 PM by wiberto

    Adding permissions to Identity

    wiberto

      I currently save the permissions a user has in a database along with the role that includes those permissions.

      When a user authenticates, I load the roles and add them to the identity using:

      identity.addRoles(roleName);
      


      Is there a way to programtically add Permissions also to the identity object like we do for roles? I would like to be able to use hasPermission in a similar was I use it for hasRole. I would prefer not having to play with rules for now if I can avoid it.

      Thanks,

      Jose