Skip to content

Commit

Permalink
Merge pull request openwebwork#1111 from mgage/hotfix-gateway-submiss…
Browse files Browse the repository at this point in the history
…ion-time

Hotfix version of PR#1102  to gateway quiz for master.
  • Loading branch information
drgrice1 authored May 19, 2020
2 parents eda3745 + 93bbb85 commit 69f1a65
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ sub can_recordAnswers {
# get the sag time after the due date in which we'll still grade the test
my $grace = $self->{ce}->{gatewayGracePeriod};

my $submitTime = ( defined($Set->version_last_attempt_time()) &&
$Set->version_last_attempt_time() ) ?
$Set->version_last_attempt_time() : $timeNow;
my $submitTime = ($Set->assignment_type eq 'proctored_gateway' &&
defined($Set->version_last_attempt_time()) && $Set->version_last_attempt_time())
? $Set->version_last_attempt_time() : $timeNow;

if ($User->user_id ne $EffectiveUser->user_id) {
my $recordAsOther = $authz->hasPermissions($User->user_id, "record_answers_when_acting_as_student");
Expand Down Expand Up @@ -249,9 +249,9 @@ sub can_checkAnswers {
# get the sag time after the due date in which we'll still grade the test
my $grace = $self->{ce}->{gatewayGracePeriod};

my $submitTime = ( defined($Set->version_last_attempt_time()) &&
$Set->version_last_attempt_time() ) ?
$Set->version_last_attempt_time() : $timeNow;
my $submitTime = ($Set->assignment_type eq 'proctored_gateway' &&
defined($Set->version_last_attempt_time()) && $Set->version_last_attempt_time())
? $Set->version_last_attempt_time() : $timeNow;

# this is further complicated by trying to address hiding scores by
# problem---that is, if $set->hide_score_by_problem and
Expand Down

0 comments on commit 69f1a65

Please sign in to comment.