mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +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,
|
include_manual => 1,
|
||||||
);
|
);
|
||||||
if ( $journey->{user_data}{comment}
|
if ( $journey->{user_data}{comment}
|
||||||
and not $user->{public_level} & 0x04 )
|
and not $user->{comments_visible} )
|
||||||
{
|
{
|
||||||
delete $journey->{user_data}{comment};
|
delete $journey->{user_data}{comment};
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,7 +276,7 @@
|
||||||
% if ($journey->{real_arrival}->epoch and $journey_visibility eq 'private') {
|
% if ($journey->{real_arrival}->epoch and $journey_visibility eq 'private') {
|
||||||
% $arr_text = $journey->{real_arrival}->strftime(' – Ankunft gegen %H:%M Uhr');
|
% $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"
|
data-text="<%= $journey->{comment} %> (@ <%= $journey->{train_type} %> <%= $journey->{train_no} %> → <%= $journey->{arr_name} %>) #travelynx"
|
||||||
% }
|
% }
|
||||||
% else {
|
% else {
|
||||||
|
|
Loading…
Reference in a new issue