sub problem_entry {
my ($self, $id, $contest, $user) = @_;
- my $pb = $self->problems->find($id, {columns => PROBLEM_PUBLIC_COLUMNS, prefetch => 'owner'});
my $running = $contest && $self->contest($contest)->is_running;
+ my $columns = PROBLEM_PUBLIC_COLUMNS;
+ push @$columns, 'solution' unless $running;
+ my $pb = $self->problems->find($id, {columns => $columns, prefetch => 'owner'});
eval { ## no critic (RequireCheckingReturnValueOfEval)
$self->opens->create({
contest => $contest,