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

Gavin King gavin.king at jboss.com
Tue Jan 30 11:32:36 EST 2007


  User: gavin   
  Date: 07/01/30 11:32:36

  Modified:    src/main/org/jboss/seam/pages  Page.java
  Log:
  permission should be named render
  
  Revision  Changes    Path
  1.8       +4 -4      jboss-seam/src/main/org/jboss/seam/pages/Page.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Page.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/pages/Page.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- Page.java	26 Jan 2007 05:35:20 -0000	1.7
  +++ Page.java	30 Jan 2007 16:32:36 -0000	1.8
  @@ -175,16 +175,16 @@
       */
      public boolean enter(FacesContext facesContext)
      {
  -      if (isRestricted())
  +      if ( isRestricted() )
         {
            String expr = restriction;
            // If no expression is configured, create a default one
            if (expr == null)
  -            expr = String.format("#{s:hasPermission('%s', 'view', null)}", 
  -                     getViewId());
  -            
  +         {
  +            expr = String.format("#{s:hasPermission('%s', 'render', null)}", getViewId());
               Identity.instance().checkRestriction(expr);
         }      
  +      }      
         
         boolean result = false;
         
  
  
  



More information about the jboss-cvs-commits mailing list