Index: lams_common/src/java/org/lamsfoundation/lams/integration/service/IntegrationService.java =================================================================== diff -u -re81b268e07447ac07e027363d79aec58c942bf60 -r445a4dce899e983de37328df3219fbed8ab78f9d --- lams_common/src/java/org/lamsfoundation/lams/integration/service/IntegrationService.java (.../IntegrationService.java) (revision e81b268e07447ac07e027363d79aec58c942bf60) +++ lams_common/src/java/org/lamsfoundation/lams/integration/service/IntegrationService.java (.../IntegrationService.java) (revision 445a4dce899e983de37328df3219fbed8ab78f9d) @@ -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