diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-10 09:10:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-10 09:10:51 +0000 |
commit | 52a7fa6176c8248033b4734773e15dd8b60b2f20 (patch) | |
tree | 48ad634039fb55622a2ebbe63f005baf5c2b5cb1 /app/views/issues/_action_menu.html.erb | |
parent | a1ae0aed238d3b49af69c895ac72f9b39684f980 (diff) | |
download | redmine-52a7fa6176c8248033b4734773e15dd8b60b2f20.tar.gz redmine-52a7fa6176c8248033b4734773e15dd8b60b2f20.zip |
Changed IssuesController#destroy to DELETE only.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8150 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/_action_menu.html.erb')
-rw-r--r-- | app/views/issues/_action_menu.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb index 02357751f..acbeb3617 100644 --- a/app/views/issues/_action_menu.html.erb +++ b/app/views/issues/_action_menu.html.erb @@ -5,5 +5,5 @@ <%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate' %> <%= link_to_if_authorized l(:button_copy), {:controller => 'issue_moves', :action => 'new', :id => @issue, :copy_options => {:copy => 't'}}, :class => 'icon icon-copy' %> <%= link_to_if_authorized l(:button_move), {:controller => 'issue_moves', :action => 'new', :id => @issue}, :class => 'icon icon-move' %> -<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => issues_destroy_confirmation_message(@issue), :method => :post, :class => 'icon icon-del' %> +<%= link_to l(:button_delete), issue_path(@issue), :confirm => issues_destroy_confirmation_message(@issue), :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %> </div> |