Skip to content

Commit

Permalink
Merge pull request #1315 from memphis-iis/iss1313
Browse files Browse the repository at this point in the history
Iss1313: userselect logic
  • Loading branch information
JRustyHaner authored Nov 14, 2023
2 parents 9a632e0 + 2e01f4d commit 167bb76
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mofacts/client/views/new_templates/lessonSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,7 @@ Template.lessonSelect.helpers({
),
);
}

// Note that we defer checking for userselect in case something above
// (e.g. experimentTarget) auto-selects the TDF
if (setspec.userselect && !isAdmin) {
if (setspec.userselect == 'false') continue;
}


const audioInputEnabled = setspec.audioInputEnabled ? setspec.audioInputEnabled == 'true' : false;
const enableAudioPromptAndFeedback = setspec.enableAudioPromptAndFeedback ?
setspec.enableAudioPromptAndFeedback == 'true' : false;
Expand Down Expand Up @@ -293,7 +287,7 @@ Template.lessonSelect.helpers({
this.tdfTags.set(tdfTags);


if ((tdf.visibility == 'profileOnly' || tdf.visibility == 'enabled') & typeof name != "undefined" & name != "") {
if ((tdf.visibility == 'profileOnly' || tdf.visibility == 'enabled') & typeof name != "undefined" & name != "" || setspec.userseleet != 'false') {
enabledTdfs.push(tdfObject);
} else {
disabledTdfs.push(tdfObject);
Expand Down

0 comments on commit 167bb76

Please sign in to comment.