]> projects.mako.cc - selectricity-live/commitdiff
merged in from code from the other master
authorBenjamin Mako Hill <mako@atdot.cc>
Mon, 6 Sep 2010 18:32:41 +0000 (14:32 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Mon, 6 Sep 2010 18:32:41 +0000 (14:32 -0400)
app/controllers/voter_controller.rb
config/mongrel_cluster.yml

index 5d729a6752800f7f799666b3c45d3bc38ceca375..408bdab880ec0f411a1d19f8eea0261f3b5d1d02 100644 (file)
@@ -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
index 820c8e2f582981ea657f12996981c5cdbdf12707..5f5efefa548fd685f7971297415032d05102d088 100644 (file)
@@ -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

Benjamin Mako Hill || Want to submit a patch?