From: Benjamin Mako Hill Date: Mon, 6 Sep 2010 18:32:41 +0000 (-0400) Subject: merged in from code from the other master X-Git-Url: https://projects.mako.cc/source/selectricity-live/commitdiff_plain/99e1580f0d7707b8e2f8c08f8aae70c3d4906637?hp=18398bc78aacbb1676d2284cdd32362b30776f4f merged in from code from the other master --- diff --git a/app/controllers/voter_controller.rb b/app/controllers/voter_controller.rb index 5d729a6..408bdab 100644 --- a/app/controllers/voter_controller.rb +++ b/app/controllers/voter_controller.rb @@ -123,8 +123,9 @@ class VoterController < ApplicationController end def results - if @voter.election.early_results? \ - or @voter.election.enddate < Time.now + if authenticate and + (@voter.election.early_results? \ + or @voter.election.enddate < Time.now) @election = @voter.election @sidebar_content = \ @@ -195,7 +196,7 @@ class VoterController < ApplicationController # when (a) there is no voter or (b) when there is a voter but # it's kiosk mode on the right page, rewrite with a blank voter - if not(@voter) \ + if ((not @voter) and (election.enddate < Time.now)) \ or (params[:action] == 'kiosk_ready' and election.kiosk) @voter = OpenVoter.new unless @voter end diff --git a/config/mongrel_cluster.yml b/config/mongrel_cluster.yml index 820c8e2..5f5efef 100644 --- a/config/mongrel_cluster.yml +++ b/config/mongrel_cluster.yml @@ -1,8 +1,8 @@ --- -cwd: /org/selectricity/www/selectricity-live +cwd: /org/selectricity/selectricity-live log_file: log/mongrel.log port: "8000" environment: production -address: 127.0.0.1 +address: 18.181.1.87 pid_file: tmp/pids/mongrel.pid servers: 3