diff --git a/providers/cm-authz-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementGroupProvider.java b/providers/cm-authz-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementGroupProvider.java index 97756afc3fb2..53a09cc8e961 100644 --- a/providers/cm-authz-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementGroupProvider.java +++ b/providers/cm-authz-provider/src/java/org/sakaiproject/coursemanagement/impl/provider/CourseManagementGroupProvider.java @@ -104,8 +104,8 @@ public Map getUserRolesForGroup(String id) { for(Iterator> rrRoleIter = rrUserRoleMap.entrySet().iterator(); rrRoleIter.hasNext();) { Entry entry = rrRoleIter.next(); String userEid = entry.getKey(); - String existingRole = entry.getValue(); - String rrRole = rrUserRoleMap.get(userEid); + String existingRole = userRoleMap.get(userEid); + String rrRole = entry.getValue(); // The Role Resolver has found no role for this user if(rrRole == null) {