From c32b93ff4da116921aa5ac8da4dcfddbf02a2d55 Mon Sep 17 00:00:00 2001
From: Derf Null <derf@finalrewind.org>
Date: Fri, 23 Jun 2023 21:04:25 +0200
Subject: [PATCH] _public_status_card: remove superfluous public_level check

arr_name is only set if the user may see the journey
---
 templates/_public_status_card.html.ep | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep
index 8e3eec73..42d507ed 100644
--- a/templates/_public_status_card.html.ep
+++ b/templates/_public_status_card.html.ep
@@ -185,7 +185,7 @@
 			<p>
 			% if ($journey->{arr_name}) {
 				Zuletzt gesehen
-				% if ($journey->{real_arrival}->epoch and ($public_level & 0x20 or ($public_level & 0x10 and is_user_authenticated()))) {
+				% if ($journey->{real_arrival}->epoch) {
 					%= $journey->{real_arrival}->strftime('am %d.%m.%Y')
 					in <b><%= $journey->{arr_name} %></b>
 					%= $journey->{real_arrival}->strftime('(Ankunft um %H:%M Uhr)')
-- 
GitLab