@pie-element/ebsr 14.2.4 → 14.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2710,6 +2710,10 @@ const getShuffledChoices = (choices, session, updateSession, choiceKey) =>
2710
2710
  * - true - that means that the order of the choices will be ordinal (as is created in the configure item)
2711
2711
  * - false - that means the getShuffledChoices above will be called and that in turn means that we either
2712
2712
  * return the shuffled values on the session (if any exists) or we shuffle the choices
2713
+ *
2714
+ * Note: the role (student/instructor) is intentionally not considered here — instructor mode
2715
+ * will respect the same `lockChoiceOrder` value as students, instead of forcing the order to be locked.
2716
+ *
2713
2717
  * @param model - model to check if we should lock order
2714
2718
  * @param session - session to check if we should lock order
2715
2719
  * @param env - env to check if we should lock order
@@ -2726,21 +2730,6 @@ const lockChoices = (model, session, env) => {
2726
2730
  return true;
2727
2731
  }
2728
2732
 
2729
- const role = get$1(env, 'role', 'student');
2730
-
2731
- if (role === 'instructor') {
2732
- // TODO: .. in the future the instructor can toggle between ordinal and shuffled here, so keeping this code until then
2733
- /*const alreadyShuffled = hasShuffledValues(session);
2734
-
2735
- if (alreadyShuffled) {
2736
- return false;
2737
- }
2738
-
2739
- return true;*/
2740
- return true;
2741
- }
2742
-
2743
- // here it's a student, so don't lock and it will shuffle if needs be
2744
2733
  return false;
2745
2734
  };
2746
2735