[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...

Shane Bryzak Shane_Bryzak at symantec.com
Wed Jan 31 01:50:03 EST 2007


  User: sbryzak2
  Date: 07/01/31 01:50:03

  Modified:    src/main/org/jboss/seam/security  Identity.java
  Log:
  synchronized permission checks
  
  Revision  Changes    Path
  1.35      +21 -18    jboss-seam/src/main/org/jboss/seam/security/Identity.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Identity.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Identity.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -b -r1.34 -r1.35
  --- Identity.java	31 Jan 2007 04:09:08 -0000	1.34
  +++ Identity.java	31 Jan 2007 06:50:03 -0000	1.35
  @@ -247,6 +247,8 @@
   
         PermissionCheck check = new PermissionCheck(name, action);
   
  +      synchronized(securityContext)
  +      {
         handles.add(securityContext.assertObject(check));
   
         if (arg!=null && securityContext.getFactHandle(arg) == null)
  @@ -271,6 +273,7 @@
   
         for (FactHandle handle : handles)
            securityContext.retractObject(handle);
  +      }
         
         return check.isGranted();
      }
  
  
  



More information about the jboss-cvs-commits mailing list