journey: show error for _all_ invalid IDs

This commit is contained in:
Daniel Friesel 2019-03-31 19:34:29 +02:00
parent 3ce1cfc55f
commit 10c995e15f

View file

@ -326,7 +326,7 @@ sub journey_details {
checkout_id => $checkout_id, checkout_id => $checkout_id,
verbose => 1, verbose => 1,
); );
if ( @journeys == 0 or not $journeys[0]{completed}) { if ( @journeys == 0 or $journeys[0]{ids}[1] != $checkout_id) {
$self->render( $self->render(
'journey', 'journey',
error => 'notfound', error => 'notfound',