Skip to content

Commit ff9ca77

Browse files
committed
record/update user lis_source_did for LTI 1.3 even when grade passback not in use
1 parent f58e997 commit ff9ca77

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/WeBWorK/Authen/LTIAdvantage.pm

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,9 @@ sub authenticate ($self) {
326326
$self->{initial_login} = 1;
327327
}
328328

329-
# If we are using grade passback then make sure the data we need to submit the grade is kept up to date.
330-
my $LTIGradeMode = $ce->{LTIGradeMode} // '';
331-
if ($LTIGradeMode eq 'course' || $LTIGradeMode eq 'homework') {
332-
WeBWorK::Authen::LTIAdvantage::SubmitGrade->new($c)->update_passback_data($self->{user_id});
333-
}
329+
# In case we will use grade passback at some point,
330+
# make sure the data we need to submit the grade is kept up to date.
331+
WeBWorK::Authen::LTIAdvantage::SubmitGrade->new($c)->update_passback_data($self->{user_id});
334332

335333
return 1;
336334
}

0 commit comments

Comments
 (0)