From 4e65be9ed1084f261f0aae63e2901c2248730fe7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 12 Aug 2007 14:22:02 +0000 Subject: [PATCH] Fixed: the link to delete issue relations is displayed even if the user is not authorized to delete relations git-svn-id: http://redmine.rubyforge.org/svn/trunk@614 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_relations.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/issues/_relations.rhtml b/app/views/issues/_relations.rhtml index f817d3851..2a45ba473 100644 --- a/app/views/issues/_relations.rhtml +++ b/app/views/issues/_relations.rhtml @@ -8,9 +8,9 @@
<%= relation.other_issue(@issue).status.name %> <%= format_date(relation.other_issue(@issue).start_date) %> <%= format_date(relation.other_issue(@issue).due_date) %> -<%= link_to_remote image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation}, +<%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation}, :method => :post - }, :title => l(:label_relation_delete) %> + }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %> <% end %>