diff --git a/src/org/opencms/security/CmsRole.java b/src/org/opencms/security/CmsRole.java
index <HASH>..<HASH> 100644
--- a/src/org/opencms/security/CmsRole.java
+++ b/src/org/opencms/security/CmsRole.java
@@ -1,7 +1,7 @@
 /*
  * File   : $Source: /alkacon/cvs/opencms/src/org/opencms/security/CmsRole.java,v $
- * Date   : $Date: 2007/08/31 13:23:02 $
- * Version: $Revision: 1.16 $
+ * Date   : $Date: 2008/02/01 09:39:12 $
+ * Version: $Revision: 1.17 $
  *
  * This library is part of OpenCms -
  * the Open Source Content Management System
@@ -73,7 +73,7 @@ import java.util.Set;
  * 
  * @author  Alexander Kandzior 
  *
- * @version $Revision: 1.16 $ 
+ * @version $Revision: 1.17 $ 
  * 
  * @since 6.0.0 
  */
@@ -336,7 +336,7 @@ public final class CmsRole {
             }
             if (!role.isOrganizationalUnitIndependent()) {
                 // the role name does not start with "/", but the given role fqn does 
-                if (roleName.endsWith(CmsOrganizationalUnit.SEPARATOR + role.getGroupName())) {
+                if (roleName.endsWith(CmsOrganizationalUnit.SEPARATOR + role.getRoleName())) {
                     return role.forOrgUnit(roleOu);
                 }
             }
fixed bug with parsing role names