diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-02-09 16:48:03 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-02-19 15:56:39 +0000 |
commit | a3fca101ab01c93516e286921433eedb4898eb62 (patch) | |
tree | bb648f2989f31efda59f0d3ed64ff3beff138be0 | |
parent | e257ff727c325f9a16905dea61a2526e600f6886 (diff) |
Add AUTHORITY_MUST_RESPOND configuration option
-rw-r--r-- | app/views/request/select_authority.html.erb | 7 | ||||
-rw-r--r-- | config/general.yml-example | 5 | ||||
-rw-r--r-- | doc/CHANGES.md | 3 | ||||
-rw-r--r-- | lib/configuration.rb | 1 |
4 files changed, 14 insertions, 2 deletions
diff --git a/app/views/request/select_authority.html.erb b/app/views/request/select_authority.html.erb index 134648264..e738c70e5 100644 --- a/app/views/request/select_authority.html.erb +++ b/app/views/request/select_authority.html.erb @@ -19,8 +19,11 @@ <div> <p> <%= _(%Q(First, type in the <strong>name of the UK public authority</strong> you'd - like information from. <strong>By law, they have to respond</strong> - (<a href="{{url}}">why?</a>).), :url => (help_about_path(:anchor => 'whybother_them')).html_safe) %> + like information from.)) %> + <% if AlaveteliConfiguration.authority_must_respond %> + <%= _(%Q(<strong>By law, they have to respond</strong> (<a href="{{url}}">why?</a>).), + :url => (help_about_path(:anchor => 'whybother_them')).html_safe) %> + <% end %> </p> <%= text_field_tag :query, diff --git a/config/general.yml-example b/config/general.yml-example index 5be62ee21..1f126c5a5 100644 --- a/config/general.yml-example +++ b/config/general.yml-example @@ -154,6 +154,11 @@ USE_DEFAULT_BROWSER_LANGUAGE: true # --- INCLUDE_DEFAULT_LOCALE_IN_URLS: true +# Are authorities required to respond by law? +# +# AUTHORITY_MUST_RESPOND: Boolean (default: true) +AUTHORITY_MUST_RESPOND: true + # The REPLY...AFTER_DAYS settings define how many days must have passed before # an answer to a request is officially late. The SPECIAL case is for some types # of authority (for example: in the UK, schools) which are granted a bit longer diff --git a/doc/CHANGES.md b/doc/CHANGES.md index 421099604..dee11f6f7 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -2,6 +2,9 @@ ## Highlighted Features +* Added a new `AUTHORITY_MUST_RESPOND` configuration variable. Set this to + `true` If authorities must respond by law. Set to `false` otherwise. It + defaults to `true`. At the moment this just tweaks some UI text. * State changing admin actions are now restricted to PUT or POST methods to protect against CSRF attacks, and now use more standard RESTful routing. diff --git a/lib/configuration.rb b/lib/configuration.rb index 2144f9954..90fd30d5f 100644 --- a/lib/configuration.rb +++ b/lib/configuration.rb @@ -19,6 +19,7 @@ module AlaveteliConfiguration :ADMIN_PASSWORD => '', :ADMIN_USERNAME => '', :ALLOW_BATCH_REQUESTS => false, + :AUTHORITY_MUST_RESPOND => true, :AVAILABLE_LOCALES => '', :BLACKHOLE_PREFIX => 'do-not-reply-to-this-address', :BLOG_FEED => '', |