[jboss-cvs] jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace ...

Shane Bryzak Shane_Bryzak at symantec.com
Tue Jan 30 03:31:37 EST 2007


  User: sbryzak2
  Date: 07/01/30 03:31:37

  Modified:    examples/seamspace/src/org/jboss/seam/example/seamspace 
                        FriendAction.java
  Log:
  enabled inline permission check
  
  Revision  Changes    Path
  1.5       +2 -2      jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FriendAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- FriendAction.java	27 Jan 2007 15:08:56 -0000	1.4
  +++ FriendAction.java	30 Jan 2007 08:31:37 -0000	1.5
  @@ -46,8 +46,8 @@
            .getSingleResult();
                     
            // TODO this doesn't work - check with Gavin
  -//         Contexts.getMethodContext().set("friends", member.getFriends());
  -//         Identity.instance().checkRestriction("#{s:hasPermission('friendComment', 'create', friends)}");
  +         Contexts.getMethodContext().set("friends", member.getFriends());
  +         Identity.instance().checkRestriction("#{s:hasPermission('friendComment', 'create', friends)}");
   
            friendComment = new FriendComment();
            friendComment.setFriend(authenticatedMember);
  
  
  



More information about the jboss-cvs-commits mailing list