aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-02 14:27:20 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-02 14:27:20 +1100
commitfa624fc7f17b6b4b6710817ed63291386e525f9c (patch)
tree96e5c142193e754aac3260c14d1f6bf2dfe560da /app/controllers/request_controller.rb
parentc6eb7777a8d467ab6befc0974e44beb4f47f737a (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.rb6
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?