summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--registration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/registration.rb b/registration.rb
index da11e4e..bc62cfa 100644
--- a/registration.rb
+++ b/registration.rb
@@ -13,7 +13,7 @@ class RegistrationApp < Sinatra::Base
config_file File.join(settings.root, 'config.yml')
- before do
+ before %r{^(?!/registrations_closed$)} do
redirect to('/registrations_closed') unless accept_registrations(settings)
end