Author: shane.bryzak(a)jboss.com
Date: 2008-02-03 22:28:16 -0500 (Sun, 03 Feb 2008)
New Revision: 7354
Modified:
trunk/src/main/org/jboss/seam/security/RuleBasedIdentity.java
Log:
synchronizeContext() should be synchronized itself
Modified: trunk/src/main/org/jboss/seam/security/RuleBasedIdentity.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/RuleBasedIdentity.java 2008-02-04 03:24:52 UTC
(rev 7353)
+++ trunk/src/main/org/jboss/seam/security/RuleBasedIdentity.java 2008-02-04 03:28:16 UTC
(rev 7354)
@@ -102,14 +102,14 @@
if (securityContext == null) return false;
- synchronizeContext();
-
List<FactHandle> handles = new ArrayList<FactHandle>();
PermissionCheck check = new PermissionCheck(name, action);
synchronized( securityContext )
{
+ synchronizeContext();
+
handles.add( securityContext.insert(check) );
for (int i = 0; i < arg.length; i++)