OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
821f9eb
)
IssuesController#destroy accepts POST only (#4107).
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 25 Oct 2009 13:38:48 +0000
(13:38 +0000)
committer
Jean-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
patch
|
blob
|
history
diff --git
a/app/controllers/issues_controller.rb
b/app/controllers/issues_controller.rb
index
bebba10
..
4261434
100644
(file)
--- a/
app/controllers/issues_controller.rb
+++ b/
app/controllers/issues_controller.rb
@@
-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)