diff options
author | francis <francis> | 2008-06-23 23:20:45 +0000 |
---|---|---|
committer | francis <francis> | 2008-06-23 23:20:45 +0000 |
commit | 387ba921258abaa740e3d1f314c0f68697f4aa2f (patch) | |
tree | 422a67a0b89e9b9fadf2389c24e13fa5d88c12c1 /app/controllers/request_controller.rb | |
parent | 60d1905e489bfb5ec9b1f792e54f54333d06b62e (diff) |
not_apply option to say that FOI law doesn't apply (rather than just we
don't have an email)
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 1c9c36f74..f01f514a1 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.93 2008-05-27 08:56:27 francis Exp $ +# $Id: request_controller.rb,v 1.94 2008-06-23 23:20:45 francis Exp $ class RequestController < ApplicationController @@ -82,10 +82,10 @@ class RequestController < ApplicationController if @info_request.public_body.nil? redirect_to frontpage_url else - if @info_request.public_body.request_email.empty? - render :action => 'new_bad_contact' - else + if @info_request.public_body.is_requestable? render :action => 'new' + else + render :action => 'new_' + @info_request.public_body.not_requestable_reason end end return @@ -107,8 +107,8 @@ class RequestController < ApplicationController @outgoing_message.info_request = @info_request # Maybe we lost the address while they're writing it - if @info_request.public_body.request_email.empty? - render :action => 'new_bad_contact' + if not @info_request.public_body.is_requestable? + render :action => 'new_' + @info_request.public_body.not_requestable_reason return end |