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

Shane Bryzak Shane_Bryzak at symantec.com
Sat Jan 13 00:36:06 EST 2007


  User: sbryzak2
  Date: 07/01/13 00:36:06

  Modified:    src/main/org/jboss/seam/interceptors 
                        SecurityInterceptor.java
  Log:
  simple support for Seam EL functions with the unified EL
  
  Revision  Changes    Path
  1.20      +2 -2      jboss-seam/src/main/org/jboss/seam/interceptors/SecurityInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SecurityInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/SecurityInterceptor.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- SecurityInterceptor.java	12 Jan 2007 13:25:49 -0000	1.19
  +++ SecurityInterceptor.java	13 Jan 2007 05:36:06 -0000	1.20
  @@ -45,7 +45,7 @@
                     
            if (!SeamSecurityManager.instance().evaluateExpression(expr))
               throw new AuthorizationException(String.format(
  -                  "Authorization check failed for expression [%s]", r.value()));
  +                  "Authorization check failed for expression [%s]", expr));
         }
   
         return invocation.proceed();
  @@ -67,6 +67,6 @@
                     "Method %s is not a component method", method));
         }
         
  -      return String.format("#{s:hasPermission('%s','%s')}", name, method.getName());
  +      return String.format("#{s:hasPermission('%s','%s', null)}", name, method.getName());
      }
   }
  
  
  



More information about the jboss-cvs-commits mailing list