3 Replies Latest reply on Sep 11, 2008 2:18 PM by Adrien Orsier

    Permission with Seam 2.1

    Adrien Orsier Newbie

      Hi,


      I implemented Seam security using roles and users-permissions.
      I'd like to know if there's any way to know if one of my specific user or role has a specific permission.
      I'd have expected to have something like that in PermissionManager, but it's missing.
      Something like:


      PermissionManager.instance.checkPermission(permission);



      Where permission is an org.jboss.seam.security.Permission.permission, so it contains the principal I want to check the permission for.


      So far I didn't find any way to do it using the Seam security framework, and I'm afraid I'll have to it an ugly way myself.