diff --git a/Kinza/lib/Kinza.pm b/Kinza/lib/Kinza.pm index 9c62358..2657abb 100644 --- a/Kinza/lib/Kinza.pm +++ b/Kinza/lib/Kinza.pm @@ -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')) {