continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r443506 - /maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/security/DefaultContinuumSecurity.java
Date Thu, 14 Sep 2006 22:46:20 GMT
Author: carlos
Date: Thu Sep 14 15:46:19 2006
New Revision: 443506

URL: http://svn.apache.org/viewvc?view=rev&rev=443506
Log:
Fix class cast exception

Modified:
    maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/security/DefaultContinuumSecurity.java

Modified: maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/security/DefaultContinuumSecurity.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/security/DefaultContinuumSecurity.java?view=diff&rev=443506&r1=443505&r2=443506
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/security/DefaultContinuumSecurity.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/security/DefaultContinuumSecurity.java
Thu Sep 14 15:46:19 2006
@@ -50,9 +50,9 @@
         List groups = u.getGroups();
         Iterator it = groups.iterator();
         List permissions = new ArrayList();
-        while( it.hasNext() )
+        while ( it.hasNext() )
         {
-            permissions.addAll( getPermissions( (UserGroup) it.next() ) );
+            permissions.addAll( ( (org.apache.maven.user.model.UserGroup) it.next() ).getPermissions()
);
         }
 
         return permissions;



Mime
View raw message