From 3a3a7bfedaab71c5641b10c77c51117098a4be60 Mon Sep 17 00:00:00 2001
From: Derf Null
Date: Fri, 24 Mar 2023 17:49:53 +0100
Subject: only show passenger rights link on own journeys
---
templates/journey.html.ep | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 6ed204f..696329f 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -54,7 +54,7 @@
∗ Daten wurden manuell eingetragen
% }
- % if ($journey->{cancelled} or ($journey->{rt_arrival} and ($journey->{rt_arrival}->epoch - $journey->{sched_arrival}->epoch) >= 3600)) {
+ % if (not stash('readonly') and ($journey->{cancelled} or ($journey->{rt_arrival} and ($journey->{rt_arrival}->epoch - $journey->{sched_arrival}->epoch) >= 3600))) {
% my $form_target = sprintf('/journey/passenger_rights/FGR %s %s %s.pdf', $journey->{sched_departure}->ymd, $journey->{type}, $journey->{no});
%= form_for $form_target => (method => 'POST') => begin
--
cgit v1.2.3