lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl RoleCondition.java
Date Fri, 30 May 2003 10:51:18 GMT
andreas     2003/05/30 03:51:17

  Modified:    src/java/org/apache/lenya/cms/workflow/impl
                        RoleCondition.java
  Log:
  corrected userRoles = null initialization
  
  Revision  Changes    Path
  1.5       +2 -1      cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl/RoleCondition.java
  
  Index: RoleCondition.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl/RoleCondition.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RoleCondition.java	28 May 2003 15:26:52 -0000	1.4
  +++ RoleCondition.java	30 May 2003 10:51:17 -0000	1.5
  @@ -6,6 +6,7 @@
   
   package org.apache.lenya.cms.workflow.impl;
   
  +import java.util.HashSet;
   import java.util.Iterator;
   import java.util.Set;
   
  @@ -33,7 +34,7 @@
           CMSSituation situationImpl = (CMSSituation) situation;
           User user = situationImpl.getUser();
           Iterator userGroups = user.getGroups();
  -        Set userRoles = null;
  +        Set userRoles = new HashSet();
           
           while (userGroups.hasNext()) {
           	Iterator groupRoles = ((Group)userGroups.next()).getRoles();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message