Index: lams_bb_integration/web/modules/modify.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_bb_integration/web/modules/modify.jsp,v diff -u -r1.5 -r1.6 --- lams_bb_integration/web/modules/modify.jsp 24 Aug 2012 09:07:03 -0000 1.5 +++ lams_bb_integration/web/modules/modify.jsp 12 Feb 2014 21:46:43 -0000 1.6 @@ -34,7 +34,6 @@ <% String NOT_AVAILABLE = "Item is not available.
"; - // SECURITY! // Authorise current user for Course Control Panel (automatic redirect) try{ if (!PlugInUtil.authorizeForCourseControlPanel(request, response)) @@ -43,14 +42,10 @@ throw new RuntimeException(e); } - // Retrieve the Db persistence manager from the persistence service - BbPersistenceManager bbPm = BbServiceManager.getPersistenceService().getDbPersistenceManager(); - - // Get the content ID for this item + // Get the Course Document (Lams Lesson) + BbPersistenceManager bbPm = BbServiceManager.getPersistenceService().getDbPersistenceManager(); Container bbContainer = bbPm.getContainer(); - Id contentId = new PkId( bbContainer, CourseDocument.DATA_TYPE, request.getParameter("content_id") ); - - // Load the Course Document (Lams Lesson) + Id contentId = new PkId( bbContainer, CourseDocument.DATA_TYPE, request.getParameter("content_id") ); ContentDbLoader courseDocumentLoader = (ContentDbLoader) bbPm.getLoader( ContentDbLoader.TYPE ); Content courseDoc = (Content)courseDocumentLoader.loadById( contentId ); @@ -98,6 +93,11 @@ >No + + >Yes + >No + + >Yes >No