[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...

Shane Bryzak sbryzak at redhat.com
Sat Feb 24 17:07:28 EST 2007


  User: sbryzak2
  Date: 07/02/24 17:07:28

  Modified:    src/main/org/jboss/seam/security  Identity.java
  Log:
  JBSEAM-918
  
  Revision  Changes    Path
  1.71      +4 -4      jboss-seam/src/main/org/jboss/seam/security/Identity.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Identity.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Identity.java,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -b -r1.70 -r1.71
  --- Identity.java	22 Feb 2007 15:19:02 -0000	1.70
  +++ Identity.java	24 Feb 2007 22:07:28 -0000	1.71
  @@ -297,7 +297,7 @@
      {      
         for ( Group sg : subject.getPrincipals(Group.class) )      
         {
  -         if ( "roles".equals( sg.getName() ) )
  +         if ( "roles".equalsIgnoreCase( sg.getName() ) )
            {
               subject.getPrincipals().remove(sg);
               break;
  @@ -333,7 +333,7 @@
      {
         for ( Group sg : subject.getPrincipals(Group.class) )      
         {
  -         if ( "roles".equals( sg.getName() ) )
  +         if ( "roles".equalsIgnoreCase( sg.getName() ) )
            {
               return sg.isMember( new SimplePrincipal(role) );
            }
  @@ -357,7 +357,7 @@
         {
            for ( Group sg : subject.getPrincipals(Group.class) )      
            {
  -            if ( "roles".equals( sg.getName() ) )
  +            if ( "roles".equalsIgnoreCase( sg.getName() ) )
               {
                  return sg.addMember(new SimplePrincipal(role));
               }
  @@ -379,7 +379,7 @@
      {     
         for ( Group sg : subject.getPrincipals(Group.class) )      
         {
  -         if ( "roles".equals( sg.getName() ) )
  +         if ( "roles".equalsIgnoreCase( sg.getName() ) )
            {
               Enumeration e = sg.members();
               while (e.hasMoreElements())
  
  
  



More information about the jboss-cvs-commits mailing list