Added restrictions to access Poll results and stats

This commit is contained in:
María Checa
2017-10-23 14:17:25 +02:00
parent 5a9ee4642e
commit 84f67db26d
4 changed files with 37 additions and 29 deletions

View File

@@ -15,7 +15,7 @@
</div>
<% else %>
<% if current_user && @poll.voted_in_web?(current_user) %>
<% if current_user && @poll.voted_in_web?(current_user) && !@poll.expired? %>
<div class="callout warning">
<%= t("polls.show.already_voted_in_web") %>
</div>