mirror of
https://github.com/derf/travelynx
synced 2024-12-02 09:19:11 +00:00
fix comment visibilitiy check
This commit is contained in:
parent
792ab9fe23
commit
1c46f56b50
2 changed files with 2 additions and 2 deletions
|
@ -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};
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue