OSDN Git Service

IssuesController#destroy accepts POST only (#4107).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Oct 2009 13:38:48 +0000 (13:38 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Oct 2009 13:38:48 +0000 (13:38 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2980 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index bebba10..4261434 100644 (file)
@@ -44,6 +44,10 @@ class IssuesController < ApplicationController
   helper :timelog
   include Redmine::Export::PDF
 
+  verify :method => :post,
+         :only => :destroy,
+         :render => { :nothing => true, :status => :method_not_allowed }
+           
   def index
     retrieve_query
     sort_init(@query.sort_criteria.empty? ? [['id', 'desc']] : @query.sort_criteria)