Index: lams_bb_integration/src/org/lamsfoundation/ld/integration/blackboard/LamsSecurityUtil.java =================================================================== RCS file: /usr/local/cvsroot/lams_bb_integration/src/org/lamsfoundation/ld/integration/blackboard/Attic/LamsSecurityUtil.java,v diff -u -r1.28 -r1.29 --- lams_bb_integration/src/org/lamsfoundation/ld/integration/blackboard/LamsSecurityUtil.java 14 May 2015 11:33:23 -0000 1.28 +++ lams_bb_integration/src/org/lamsfoundation/ld/integration/blackboard/LamsSecurityUtil.java 1 Jun 2015 04:00:56 -0000 1.29 @@ -69,7 +69,8 @@ public class LamsSecurityUtil { private static Logger logger = Logger.getLogger(LamsSecurityUtil.class); - + private static final String DUMMY_COURSE = "Previews"; + /** * Generates login requests to LAMS for author, monitor and learner * @@ -104,8 +105,9 @@ String country = getCountry(locale); String lang = getLanguage(locale); - // For template authoring calls we don't need the course. We probably don't need it for authoring in general - String courseId = ctx.getCourse()!=null ? ctx.getCourse().getCourseId() : null; + // Even for authoring calls we still need a 'course' the user, role & organisation are all bound up together + // do to be authorised to use authoring you must be in an organisation. + String courseId = ctx.getCourse()!=null ? ctx.getCourse().getCourseId() : DUMMY_COURSE; String secretkey = LamsPluginUtil.getSecretKey();