[jboss-cvs] jboss-seam/examples/seamspace/resources/META-INF ...

Shane Bryzak Shane_Bryzak at symantec.com
Sun Feb 4 07:12:52 EST 2007


  User: sbryzak2
  Date: 07/02/04 07:12:52

  Modified:    examples/seamspace/resources/META-INF  security-rules.drl
  Log:
  include a default page restriction in the example
  
  Revision  Changes    Path
  1.11      +11 -0     jboss-seam/examples/seamspace/resources/META-INF/security-rules.drl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: security-rules.drl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/resources/META-INF/security-rules.drl,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- security-rules.drl	31 Jan 2007 02:55:59 -0000	1.10
  +++ security-rules.drl	4 Feb 2007 12:12:52 -0000	1.11
  @@ -31,6 +31,17 @@
     modify(c);
   end;
   
  +rule RestrictCommentPage
  +  no-loop
  +  activation-group "permissions"
  +when
  +  c: PermissionCheck(name == "/comment.xhtml", action == "render", granted == false)
  +  Role(name == "user")
  +then
  +  c.grant();
  +  modify(c);
  +end;
  +
   rule CreateBlogComment
     no-loop
     activation-group "permissions"
  
  
  



More information about the jboss-cvs-commits mailing list