From 52a7fa6176c8248033b4734773e15dd8b60b2f20 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 10 Dec 2011 09:10:51 +0000 Subject: Changed IssuesController#destroy to DELETE only. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8150 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/controllers/issues_controller.rb') diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 7978bc001..3ce25a134 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -54,10 +54,6 @@ class IssuesController < ApplicationController helper :gantt include Redmine::Export::PDF - verify :method => [:post, :delete], - :only => :destroy, - :render => { :nothing => true, :status => :method_not_allowed } - verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed } verify :method => :post, :only => :bulk_update, :render => {:nothing => true, :status => :method_not_allowed } verify :method => :put, :only => :update, :render => {:nothing => true, :status => :method_not_allowed } @@ -225,6 +221,7 @@ class IssuesController < ApplicationController redirect_back_or_default({:controller => 'issues', :action => 'index', :project_id => @project}) end + verify :method => :delete, :only => :destroy, :render => { :nothing => true, :status => :method_not_allowed } def destroy @hours = TimeEntry.sum(:hours, :conditions => ['issue_id IN (?)', @issues]).to_f if @hours > 0 -- cgit v1.2.3