diff --git a/lib/WeBWorK/Authen.pm b/lib/WeBWorK/Authen.pm index 104ac603c7..ca08fa0099 100644 --- a/lib/WeBWorK/Authen.pm +++ b/lib/WeBWorK/Authen.pm @@ -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};