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 = \
# 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
---
-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