From 587749782dfae1eee1d30d56516351e401d14729 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 1 Sep 2015 22:56:27 +0200 Subject: [PATCH] hot fix for anonymous votes --- app/views/debates/_votes.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/debates/_votes.html.erb b/app/views/debates/_votes.html.erb index 5ce64d784..89d9313a1 100644 --- a/app/views/debates/_votes.html.erb +++ b/app/views/debates/_votes.html.erb @@ -21,7 +21,7 @@ <%= t("debates.debate.votes", count: debate.total_votes) %> - <% if user_signed_in? && current_user.unverified? %> + <% if user_signed_in? && current_user.unverified? && !debate.votable_by?(current_user)%>