From 1c46f56b50b71aa0794b8a8939488b9403371f6b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 2 Mar 2023 18:34:01 +0100 Subject: fix comment visibilitiy check --- lib/Travelynx/Controller/Traveling.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travelynx/Controller') diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 316ee08..1058837 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}; } -- cgit v1.2.3