From b6ed048c65b88ea1fa9bd46098858780293abb59 Mon Sep 17 00:00:00 2001 From: Darin McBride Date: Sat, 28 Nov 2015 08:31:26 -0700 Subject: [PATCH] Sitters really can't vote. --- lib/Lacuna/Web/EntertainmentVote.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Lacuna/Web/EntertainmentVote.pm b/lib/Lacuna/Web/EntertainmentVote.pm index 21c6681f..6e39126e 100644 --- a/lib/Lacuna/Web/EntertainmentVote.pm +++ b/lib/Lacuna/Web/EntertainmentVote.pm @@ -16,6 +16,9 @@ sub www_default { unless (defined $empire) { confess [401, 'Empire not found.']; } + if ($empire->current_session->is_sitter) { + confess [1015, 'Sitters cannot enter the lottery.']; + } my $url = $request->param('site_url'); unless (defined $url) { confess [417, 'You need to specify a site.']; -- 2.51.2