Skip to content

Commit

Permalink
do not allow LTI access to admin course
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Jan 20, 2024
1 parent 2ed01cf commit 518db6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/WeBWorK/Authen.pm
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ sub verify {
return ($self->call_next_authen_method());
}

if ($c->ce->{courseName} eq 'admin' && ref($c->authen) =~ /LTI/) {
$c->stash(authen_error => maketext('Cannot authenticate into admin course using LTI authentication.'));
return ($self->call_next_authen_method());
}

my $result = $self->do_verify;
my $error = $self->{error};
my $log_error = $self->{log_error};
Expand Down

0 comments on commit 518db6e

Please sign in to comment.