Fixed already-answered logic

Added condition to check if user is unverified to avoid showing the ui element that lets users know they already voted a poll.
This commit is contained in:
María Checa
2017-10-07 16:56:35 +02:00
parent a585f79351
commit bdffab7d72

View File

@@ -1,6 +1,6 @@
<% poll_group.each do |poll| %>
<div class="poll with-image">
<% if user_signed_in? && !poll.votable_by?(current_user) %>
<% if user_signed_in? && !current_user.unverified? && !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>