Skip to content
Snippets Groups Projects
Unverified Commit a3c97a17 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

comment editor, share button: fix comment visibility check

parent 24584f71
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,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} & 0x80 and $journey->{comment}) {
% if ($user->{comments_visible} and $journey->{comment}) {
data-text="<%= $journey->{comment} %> (@ <%= $journey->{train_type} %> <%= $journey->{train_no} %> → <%= $journey->{arr_name} %>) #travelynx"
% }
% else {
......
......@@ -29,7 +29,7 @@
am
<b><%= $journey->{sched_departure}->strftime('%d.%m.%Y') %></b>
</p>
% if (current_user()->{is_public} & 0x04) {
% if (current_user()->{comments_visible}) {
<p>
Der hier eingetragene Text ist als Teil deines Nutzerstatus
öffentlich sichtbar.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment