Index: lams_central/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== diff -u -r7c87aafad5f2ddd89aa44c0635fd35ed0bd0d606 -r6045ddb0d3684dda87e8a0fa99dc5320937387a8 --- lams_central/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 7c87aafad5f2ddd89aa44c0635fd35ed0bd0d606) +++ lams_central/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 6045ddb0d3684dda87e8a0fa99dc5320937387a8) @@ -893,4 +893,6 @@ authoring.tbl.delete.mcq.prompt=Do you want to delete the RAT Question {0}? authoring.application.exercise.allow.multiple.responses =Allow Multiple Responses authoring.application.exercise.allow.multiple.responses.tooltip =When learners are allowed to select multiple answers the grade is the sum of the grade for all correct responses selected. +message.teacher.role.not.recognized =Please wait for a teacher to start the lesson. (You were logged in as a learner, as your current role does not conform LTI specification). + #======= End labels: Exported 872 labels for en AU ===== Index: lams_central/src/java/org/lamsfoundation/lams/web/controller/LtiController.java =================================================================== diff -u -re28a4c12425b0427ddf37a1cc4ead6b66dcbbc22 -r6045ddb0d3684dda87e8a0fa99dc5320937387a8 --- lams_central/src/java/org/lamsfoundation/lams/web/controller/LtiController.java (.../LtiController.java) (revision e28a4c12425b0427ddf37a1cc4ead6b66dcbbc22) +++ lams_central/src/java/org/lamsfoundation/lams/web/controller/LtiController.java (.../LtiController.java) (revision 6045ddb0d3684dda87e8a0fa99dc5320937387a8) @@ -156,12 +156,13 @@ //check if learner tries to access the link that hasn't been authored by teacher yet String method = request.getParameter("_" + LoginRequestDispatcher.PARAM_METHOD); if (LoginRequestDispatcher.METHOD_LEARNER_STRICT_AUTHENTICATION.equals(method) && extLessonMap == null) { - String errorMsg = "Learner tries to access the link that hasn't been authored by teacher yet. resource_link_id: " - + tcGradebookId; - log.debug(errorMsg); - request.setAttribute("error", errorMsg); - request.setAttribute("javax.servlet.error.exception", new UserAccessDeniedException(errorMsg)); - return "error"; + String roles = request.getParameter(BasicLTIConstants.ROLES); + //try to detect monitor with custom roles not supported by LTI specification + String messageKey = roles.contains("Instructor") || roles.contains("Admin") ? "message.teacher.role.not.recognized" + : "message.lesson.not.started.cannot.participate"; + + request.setAttribute("messageKey", messageKey); + return "msgContent"; } //determine whether to show author or learnerMonitor pages