Index: lams_bb_integration/web/modules/modify.jsp
===================================================================
diff -u -r9d05eb517e00791c6e11d35d250f6c70e8959229 -rbf2e3def872911ffee2bfe1f8b7f1e6f8a05c90f
--- lams_bb_integration/web/modules/modify.jsp (.../modify.jsp) (revision 9d05eb517e00791c6e11d35d250f6c70e8959229)
+++ lams_bb_integration/web/modules/modify.jsp (.../modify.jsp) (revision bf2e3def872911ffee2bfe1f8b7f1e6f8a05c90f)
@@ -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