continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r825339 - /continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
Date Wed, 14 Oct 2009 23:21:20 GMT
Author: ctan
Date: Wed Oct 14 23:21:19 2009
New Revision: 825339

URL: http://svn.apache.org/viewvc?rev=825339&view=rev
Log:
[CONTINUUM-2387] retrieve correct roles to show only the users of the project group in the
members tab
merge -r 825337:825338 of 1.3.x branch

Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java?rev=825339&r1=825338&r2=825339&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
Wed Oct 14 23:21:19 2009
@@ -692,7 +692,8 @@
             List<String> roleNames = new ArrayList<String>();
             for ( Role r : roles )
             {
-                if ( r.getName().indexOf( projectGroup.getName() ) > -1 )
+                int index = r.getName().indexOf( projectGroup.getName() );
+                if ( index > -1 && r.getName().substring( index ).trim().equals(
projectGroup.getName() ) )
                 {
                     roleNames.add( r.getName() );
                 }



Mime
View raw message