diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 316ee08b265e31b16b1f73c9c2bfe254df23dc91..1058837d2a3f344d91cf2ff1ca46f769138cbbff 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -822,7 +822,7 @@ sub public_journey_details { include_manual => 1, ); if ( $journey->{user_data}{comment} - and not $user->{public_level} & 0x04 ) + and not $user->{comments_visible} ) { delete $journey->{user_data}{comment}; } diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 17759860157c99fb89be6647441e659e864857f2..8e1fd1d7d7d41a7bbbc9e8c036ea013f2e7a971c 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -276,7 +276,7 @@ % if ($journey->{real_arrival}->epoch and $journey_visibility eq 'private') { % $arr_text = $journey->{real_arrival}->strftime(' – Ankunft gegen %H:%M Uhr'); % } - % if ($user->{is_public} & 0x04 and $journey->{comment}) { + % if ($user->{is_public} & 0x80 and $journey->{comment}) { data-text="<%= $journey->{comment} %> (@ <%= $journey->{train_type} %> <%= $journey->{train_no} %> → <%= $journey->{arr_name} %>) #travelynx" % } % else {