From 9ce704571765006cae2d392cc7162d8d08a28d6a Mon Sep 17 00:00:00 2001 From: rgarcia Date: Mon, 23 Oct 2017 15:17:35 +0200 Subject: [PATCH] fixes specs --- app/views/polls/_poll_subnav.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/polls/_poll_subnav.html.erb b/app/views/polls/_poll_subnav.html.erb index 371571896..67325fa3a 100644 --- a/app/views/polls/_poll_subnav.html.erb +++ b/app/views/polls/_poll_subnav.html.erb @@ -1,4 +1,5 @@ -<% if current_user.administrator? || (@poll.expired? && (@poll.results_enabled? || @poll.stats_enabled?)) %> +<% if current_user && current_user.administrator? || + (@poll.expired? && (@poll.results_enabled? || @poll.stats_enabled?)) %>