diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-06-04 12:10:50 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-06-04 12:10:50 +0100 |
commit | cc1ff2db2899bcedd0a44ed1815034b91d3f528e (patch) | |
tree | 1d6639ca9267bf851af226674209a992ed7db1ae /app/controllers/request_controller.rb | |
parent | f6bb0e5d33ceb5beb80f9561b77c716a04f574a2 (diff) | |
parent | 8c5a1ba9ed8a3d30564a178926a2729b9e9931d7 (diff) |
Merge remote-tracking branch 'openaustralia_github/more_info_on_report_request' into rails-3-develop
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index e8547f72f..6ca4e9f82 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -680,25 +680,6 @@ class RequestController < ApplicationController end end - def report_request - info_request = InfoRequest.find_by_url_title!(params[:url_title]) - return if !authenticated?( - :web => _("To report this FOI request"), - :email => _("Then you can report the request '{{title}}'", :title => info_request.title), - :email_subject => _("Report an offensive or unsuitable request") - ) - - if !info_request.attention_requested - info_request.set_described_state('attention_requested', @user) - info_request.attention_requested = true # tells us if attention has ever been requested - info_request.save! - flash[:notice] = _("This request has been reported for administrator attention") - else - flash[:notice] = _("This request has already been reported for administrator attention") - end - redirect_to request_url(info_request) - end - # special caching code so mime types are handled right around_filter :cache_attachments, :only => [ :get_attachment, :get_attachment_as_html ] def cache_attachments |