aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-02 15:08:16 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-02 15:08:16 +1100
commitac75a0f72e63ced0aee2a21718df5980bcfdeef1 (patch)
treea704dbe7f5049da233ca7a3c25b2fd81188f1604
parentab3e3e7decda222ded7e6d83e0440bd5660a4bf0 (diff)
Restrict route for new action to post only
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index b7c2a4bfe..093bd82d6 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -55,7 +55,7 @@ ActionController::Routing::Routes.draw do |map|
request.similar_request '/similar/request/:url_title', :action => 'similar'
request.describe_state '/request/:id/describe', :action => 'describe_state', :conditions => {:method => :post}
- request.describe_state_requires_admin '/request/:id/describe/requires_admin', :action => 'describe_state_requires_admin'
+ request.describe_state_requires_admin '/request/:id/describe/requires_admin', :action => 'describe_state_requires_admin', :conditions => { :method => :post }
request.show_response_no_followup '/request/:id/response', :action => 'show_response'
request.show_response '/request/:id/response/:incoming_message_id', :action => 'show_response'
request.get_attachment_as_html '/request/:id/response/:incoming_message_id/attach/html/:part/*file_name', :action => 'get_attachment_as_html'