From fa624fc7f17b6b4b6710817ed63291386e525f9c Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Sat, 2 Mar 2013 14:27:20 +1100 Subject: Use routes to only allow post to RequestController#describe_state --- app/controllers/request_controller.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'app/controllers/request_controller.rb') 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? -- cgit v1.2.3