summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-12 14:22:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-12 14:22:02 +0000
commit4e65be9ed1084f261f0aae63e2901c2248730fe7 (patch)
tree16d97f4c6375b03b31e383aa831f7a6785330159
parent6862b979090482785f336130952dcf5a7e97db8c (diff)
downloadredmine-4e65be9ed1084f261f0aae63e2901c2248730fe7.tar.gz
redmine-4e65be9ed1084f261f0aae63e2901c2248730fe7.zip
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
-rw-r--r--app/views/issues/_relations.rhtml4
1 files 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 @@
<td><div class="square" style="background:#<%= relation.other_issue(@issue).status.html_color %>;"></div> <%= relation.other_issue(@issue).status.name %></td>
<td><%= format_date(relation.other_issue(@issue).start_date) %></td>
<td><%= format_date(relation.other_issue(@issue).due_date) %></td>
-<td><%= link_to_remote image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},
+<td><%= 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) %></td>
+ }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td>
</tr>
<% end %>
</table>