[seam-commits] Seam SVN: r9524 - trunk/src/main/org/jboss/seam/security/permission.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Nov 7 05:11:41 EST 2008


Author: shane.bryzak at jboss.com
Date: 2008-11-07 05:11:41 -0500 (Fri, 07 Nov 2008)
New Revision: 9524

Modified:
   trunk/src/main/org/jboss/seam/security/permission/RuleBasedPermissionResolver.java
Log:
JBSEAM-3681

Modified: trunk/src/main/org/jboss/seam/security/permission/RuleBasedPermissionResolver.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/permission/RuleBasedPermissionResolver.java	2008-11-07 05:56:26 UTC (rev 9523)
+++ trunk/src/main/org/jboss/seam/security/permission/RuleBasedPermissionResolver.java	2008-11-07 10:11:41 UTC (rev 9524)
@@ -202,10 +202,10 @@
    {
       Identity identity = Identity.instance();
       
-      getSecurityContext().insert(identity.getPrincipal());
-      
       if (getSecurityContext() != null)
       {
+         getSecurityContext().insert(identity.getPrincipal());
+         
          for ( Group sg : identity.getSubject().getPrincipals(Group.class) )      
          {
             if ( Identity.ROLES_GROUP.equals( sg.getName() ) )




More information about the seam-commits mailing list