portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/security SecurityCacheImpl.java
Date Fri, 07 Mar 2003 16:04:31 GMT
taylor      2003/03/07 08:04:31

  Modified:    src/java/org/apache/jetspeed/services/security
                        SecurityCacheImpl.java
  Log:
  Patch from Stuart Belden for Bug# 17734 - SecurityCacheImpl overwrites...
  
  Revision  Changes    Path
  1.7       +5 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/SecurityCacheImpl.java
  
  Index: SecurityCacheImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/SecurityCacheImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SecurityCacheImpl.java	4 Mar 2003 00:05:11 -0000	1.6
  +++ SecurityCacheImpl.java	7 Mar 2003 16:04:31 -0000	1.7
  @@ -149,8 +149,10 @@
           {
               acl.addRole(role);
           }
  -        perms.put(role.getName(), new HashMap());
  -
  +        if (!perms.containsKey(role.getName()))
  +        {
  +            perms.put(role.getName(), new HashMap());
  +        }        
       }
   
       public boolean hasRole(String username, String roleName)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message