[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action ...

Christian Bauer christian at hibernate.org
Mon Sep 3 07:09:15 EDT 2007


  User: cbauer  
  Date: 07/09/03 07:09:15

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/action 
                        UserHome.java
  Log:
  Fixed registration
  
  Revision  Changes    Path
  1.16      +7 -0      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/UserHome.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UserHome.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/UserHome.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- UserHome.java	25 Aug 2007 17:59:24 -0000	1.15
  +++ UserHome.java	3 Sep 2007 11:09:15 -0000	1.16
  @@ -227,6 +227,13 @@
               }
           }
   
  +        if (Identity.instance().hasPermission("User", "isAdmin", Component.getInstance("currentUser"))) {
  +            // Current user is admin and activated an account
  +            if (getInstance().isActivated()) {
  +                getInstance().setActivationCode(null);
  +            }
  +        }
  +
           String outcome = super.update();
           if (outcome != null) {
   
  
  
  



More information about the jboss-cvs-commits mailing list