From ceeab39e3f432d4f05daa44d5fa4bdb77d60c8d9 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Tue, 4 May 2021 18:22:38 -0700 Subject: [PATCH] Fix the show_votes? method again --- app/models/program.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/models/program.rb b/app/models/program.rb index f9e851bf..ce318385 100644 --- a/app/models/program.rb +++ b/app/models/program.rb @@ -110,15 +110,12 @@ class Program < ApplicationRecord end ## - # Checks if blind_voting is enabled and if voting period is over + # Checks if blind_voting is enabled OR if voting period is over # ====Returns # * +true+ -> If we can show voting details # * +false+ -> If we cannot show voting details def show_voting? - return true unless blind_voting - - # TODO-SNAPCON: UPDATE TESTS - # Time.current > voting_end_date + !blind_voting || Time.current > voting_end_date end ##