Index: lams_common/src/java/org/lamsfoundation/lams/integration/service/IntegrationService.java =================================================================== diff -u -rc4e67ef9e2b2cbed54f54e96807f820a4a2e9e1f -r098952533edfd1768dd3298aa0b939b6700a68ca --- lams_common/src/java/org/lamsfoundation/lams/integration/service/IntegrationService.java (.../IntegrationService.java) (revision c4e67ef9e2b2cbed54f54e96807f820a4a2e9e1f) +++ lams_common/src/java/org/lamsfoundation/lams/integration/service/IntegrationService.java (.../IntegrationService.java) (revision 098952533edfd1768dd3298aa0b939b6700a68ca) @@ -123,14 +123,11 @@ } else { courseName = extCourseId; } - if (StringUtils.equals(method, LoginRequestDispatcher.METHOD_AUTHOR) - || StringUtils.equals(method, LoginRequestDispatcher.METHOD_MONITOR)) { - return getExtCourseClassMap(serverMap, userMap, extCourseId, courseName, countryIsoCode, langIsoCode, - service.getRootOrganisation().getOrganisationId().toString(), true, prefix); - } else { - return getExtCourseClassMap(serverMap, userMap, extCourseId, courseName, countryIsoCode, langIsoCode, - service.getRootOrganisation().getOrganisationId().toString(), false, prefix); - } + + Boolean isTeacher = (StringUtils.equals(method, LoginRequestDispatcher.METHOD_AUTHOR) + || StringUtils.equals(method, LoginRequestDispatcher.METHOD_MONITOR)); + return getExtCourseClassMap(serverMap, userMap, extCourseId, courseName, countryIsoCode, langIsoCode, + service.getRootOrganisation().getOrganisationId().toString(), isTeacher, prefix); } // wrapper method for compatibility with original integration modules