[seam-commits] Seam SVN: r8490 - in trunk/src/main/org/jboss/seam/security: management and 1 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Jul 22 11:58:20 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-07-22 11:58:20 -0400 (Tue, 22 Jul 2008)
New Revision: 8490

Modified:
   trunk/src/main/org/jboss/seam/security/Identity.java
   trunk/src/main/org/jboss/seam/security/management/JpaIdentityStore.java
   trunk/src/main/org/jboss/seam/security/permission/PermissionManager.java
Log:
fix JpaPermissionStore lookup, minor

Modified: trunk/src/main/org/jboss/seam/security/Identity.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/Identity.java	2008-07-22 07:59:22 UTC (rev 8489)
+++ trunk/src/main/org/jboss/seam/security/Identity.java	2008-07-22 15:58:20 UTC (rev 8490)
@@ -600,6 +600,7 @@
       if (!securityEnabled) return true;
       if (systemOp) return true;      
       if (permissionMapper == null) return false;
+      if (target == null) return false;
       
       return permissionMapper.resolvePermission(target, action);
    }

Modified: trunk/src/main/org/jboss/seam/security/management/JpaIdentityStore.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/management/JpaIdentityStore.java	2008-07-22 07:59:22 UTC (rev 8489)
+++ trunk/src/main/org/jboss/seam/security/management/JpaIdentityStore.java	2008-07-22 15:58:20 UTC (rev 8490)
@@ -683,7 +683,7 @@
       catch (NoResultException ex)
       {
          return null;        
-      }      
+      }
    }   
    
    public List<String> listUsers()

Modified: trunk/src/main/org/jboss/seam/security/permission/PermissionManager.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/permission/PermissionManager.java	2008-07-22 07:59:22 UTC (rev 8489)
+++ trunk/src/main/org/jboss/seam/security/permission/PermissionManager.java	2008-07-22 15:58:20 UTC (rev 8490)
@@ -28,7 +28,7 @@
 @Install(precedence = BUILT_IN)
 public class PermissionManager implements Serializable
 {
-   public static final String PERMISSION_STORE_COMPONENT_NAME = "org.jboss.seam.security.permission.jpaPermissionStore";
+   public static final String PERMISSION_STORE_COMPONENT_NAME = "org.jboss.seam.security.jpaPermissionStore";
    
    public static final String PERMISSION_PERMISSION_NAME = "seam.permission";
    




More information about the seam-commits mailing list