Skip to content

Commit

Permalink
Live bodge
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Sep 17, 2015
1 parent 99a6dd5 commit d93a462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kinza/lib/Kinza.pm
Expand Up @@ -42,7 +42,7 @@ my %private = map { $_ => 1 } qw[/submit];
my %open = map { $_ => 1 } qw[/closed /years /reports];

hook before => sub {
if (! $open{request->path_info} and $now < $reg_live) {
if (! $open{request->path_info}) {
forward '/closed';
}
if ($private{request->path_info} and ! session('user')) {
Expand Down

0 comments on commit d93a462

Please sign in to comment.