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

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Sep 15 04:09:37 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-09-15 04:09:37 -0400 (Mon, 15 Sep 2008)
New Revision: 8994

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

Modified: trunk/src/main/org/jboss/seam/security/permission/RuleBasedPermissionResolver.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/permission/RuleBasedPermissionResolver.java	2008-09-15 02:21:57 UTC (rev 8993)
+++ trunk/src/main/org/jboss/seam/security/permission/RuleBasedPermissionResolver.java	2008-09-15 08:09:37 UTC (rev 8994)
@@ -92,9 +92,9 @@
       
       if (securityContext == null) return false;      
       
-      List<FactHandle> handles = new ArrayList<FactHandle>();
-                        
-      PermissionCheck check = new PermissionCheck(target, action);      
+      List<FactHandle> handles = new ArrayList<FactHandle>();  
+
+      PermissionCheck check;
       
       synchronized( securityContext )
       {
@@ -105,9 +105,11 @@
          else if (target instanceof Class)
          {
             String componentName = Seam.getComponentName((Class) target);
-            target = componentName != null ? componentName : ((Class) target).getName(); 
-         }         
+            target = componentName != null ? componentName : ((Class) target).getName();
+         }
          
+         check = new PermissionCheck(target, action);         
+         
          try
          {
             synchronizeContext();




More information about the seam-commits mailing list