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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user