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

Shane Bryzak Shane_Bryzak at symantec.com
Tue Feb 13 18:26:40 EST 2007


  User: sbryzak2
  Date: 07/02/13 18:26:40

  Modified:    src/main/org/jboss/seam/security  Identity.java
  Log:
  Use the class name only if there is no component name
  
  Revision  Changes    Path
  1.62      +4 -2      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.61
  retrieving revision 1.62
  diff -u -b -r1.61 -r1.62
  --- Identity.java	13 Feb 2007 10:17:15 -0000	1.61
  +++ Identity.java	13 Feb 2007 23:26:40 -0000	1.62
  @@ -668,7 +668,9 @@
      {
         if ( entity.getClass().isAnnotationPresent(Restrict.class) )
         {
  -         checkPermission( entity.getClass().getName(), action.toString(), entity );
  +         String name = Seam.getComponentName(entity.getClass());
  +         if (name == null) name = entity.getClass().getName();         
  +         checkPermission( name, action.toString(), entity );
         }
      }   
   }
  
  
  



More information about the jboss-cvs-commits mailing list