Verify issues are updated by HTTP PUT only. Regression from r3486.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3520 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-03-01 18:29:18 +00:00
parent 8699e5bbcd
commit f5f5a5f64f
2 changed files with 17 additions and 1 deletions
+3 -1
View File
@@ -50,7 +50,9 @@ class IssuesController < ApplicationController
verify :method => [:post, :delete],
:only => :destroy,
:render => { :nothing => true, :status => :method_not_allowed }
verify :method => :put, :only => :update, :render => {:nothing => true, :status => :method_not_allowed }
def index
retrieve_query
sort_init(@query.sort_criteria.empty? ? [['id', 'desc']] : @query.sort_criteria)