[seam-commits] Seam SVN: r10302 - trunk/src/main/org/jboss/seam/security/permission.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Sun Apr 5 21:36:23 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-04-05 21:36:22 -0400 (Sun, 05 Apr 2009)
New Revision: 10302
Modified:
trunk/src/main/org/jboss/seam/security/permission/JpaPermissionStore.java
Log:
JBSEAM-3672
Modified: trunk/src/main/org/jboss/seam/security/permission/JpaPermissionStore.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/permission/JpaPermissionStore.java 2009-04-06 00:46:51 UTC (rev 10301)
+++ trunk/src/main/org/jboss/seam/security/permission/JpaPermissionStore.java 2009-04-06 01:36:22 UTC (rev 10302)
@@ -575,12 +575,12 @@
if (identityStore != null)
{
- if (isUser && identityStore.getUserClass().equals(principal.getClass()))
+ if (isUser && identityStore.getUserClass().isAssignableFrom(principal.getClass()))
{
return new SimplePrincipal(identityStore.getUserName(principal));
}
- if (!isUser && identityStore.getRoleClass().equals(principal.getClass()))
+ if (!isUser && identityStore.getRoleClass().isAssignableFrom(principal.getClass()))
{
String name = identityStore.getRoleName(principal);
return new Role(name, identityStore.isRoleConditional(name));
More information about the seam-commits
mailing list