checks already answered polls only for users logged

This commit is contained in:
decabeza
2017-10-05 17:48:52 +02:00
parent 5fdbc7b8a6
commit ad8f58993f

View File

@@ -1,6 +1,6 @@
<% poll_group.each do |poll| %>
<div class="poll with-image">
<% if !poll.votable_by?(current_user) %>
<% if user_signed_in? && !poll.votable_by?(current_user) %>
<div class="icon-poll-answer already-answer" title="<%= t("polls.index.already_answer") %>">
<span class="show-for-sr"><%= t("polls.index.already_answer") %></span>
</div>