diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 14:27:20 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 14:27:20 +1100 |
commit | fa624fc7f17b6b4b6710817ed63291386e525f9c (patch) | |
tree | 96e5c142193e754aac3260c14d1f6bf2dfe560da /app/controllers/request_controller.rb | |
parent | c6eb7777a8d467ab6befc0974e44beb4f47f737a (diff) |
Use routes to only allow post to RequestController#describe_state
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 6b8444f90..80df9b04d 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -377,12 +377,6 @@ class RequestController < ApplicationController @info_request = InfoRequest.find(params[:id].to_i) set_last_request(@info_request) - # If this isn't a form submit, go to the request page - if params[:submitted_describe_state].nil? - redirect_to request_url(@info_request) - return - end - # If this is an external request, go to the request page - we don't allow # state change from the front end interface. if @info_request.is_external? |