File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -326,11 +326,9 @@ sub authenticate ($self) {
326
326
$self -> {initial_login } = 1;
327
327
}
328
328
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 });
334
332
335
333
return 1;
336
334
}
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ sub update_passback_data ($self, $userID) {
70
70
$self -> warning(' Missing LMS user id (sub) in JWT.' );
71
71
}
72
72
73
+ return unless $ce -> {LTIGradeMode };
74
+
73
75
# The lti_lms_lineitem is the url to post grades to. It was the 'lineitem' key of the
74
76
# 'https://purl.imsglobal.org/spec/lti-ags/claim/endpoint' object in the JWT received from the LMS.
75
77
if ($ce -> {LTIGradeMode } eq ' course' ) {
You can’t perform that action at this time.
0 commit comments