diff --git a/app/views/proposals/show.html.erb b/app/views/proposals/show.html.erb index eb49837e6..6e8245c8d 100644 --- a/app/views/proposals/show.html.erb +++ b/app/views/proposals/show.html.erb @@ -6,7 +6,11 @@ social_description: @proposal.summary %> <% end %> <% cache [locale_and_user_status(@proposal), @proposal, @proposal.author, Flag.flagged?(current_user, @proposal), @proposal_votes] do %> -
data-user-id=<%= current_user.id %>> + <% if current_user %> +
data-user-id=<%= current_user.id %>> + <% else %> +
+ <% end %>