diff options
author | David Cabo <david@calibea.com> | 2011-08-23 02:28:03 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-08-23 02:28:03 +0200 |
commit | d9948091967123ca7e9d986d6ebaf4b6226b27f3 (patch) | |
tree | 738dd1935bb2edc19e7a2e903e9b5fab29185c3a /app/controllers/request_controller.rb | |
parent | 6c692dea355ea2a057a01e795466a19f81b494aa (diff) |
Add sign-in at beginning of New Request process (configurable)
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index dadbb0cbd..ffdcbe62c 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -23,6 +23,17 @@ class RequestController < ApplicationController end def select_authority + # Check whether we force the user to sign in right at the start, or we allow her + # to start filling the request anonymously + if force_registration_on_new_request && !authenticated?( + :web => _("To send your FOI request"), + :email => _("Then you'll be allowed to send FOI requests."), + :email_subject => _("Confirm your email address") + ) + # do nothing - as "authenticated?" has done the redirect to signin page for us + return + end + medium_cache end |