##// END OF EJS Templates
Fixed: the link to delete issue relations is displayed even if the user is not authorized to delete relations...
Jean-Philippe Lang -
r611:4e65be9ed108
parent child
Show More
@@ -8,9 +8,9
8 <td><div class="square" style="background:#<%= relation.other_issue(@issue).status.html_color %>;"></div> <%= relation.other_issue(@issue).status.name %></td>
8 <td><div class="square" style="background:#<%= relation.other_issue(@issue).status.html_color %>;"></div> <%= relation.other_issue(@issue).status.name %></td>
9 <td><%= format_date(relation.other_issue(@issue).start_date) %></td>
9 <td><%= format_date(relation.other_issue(@issue).start_date) %></td>
10 <td><%= format_date(relation.other_issue(@issue).due_date) %></td>
10 <td><%= format_date(relation.other_issue(@issue).due_date) %></td>
11 <td><%= link_to_remote image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},
11 <td><%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},
12 :method => :post
12 :method => :post
13 }, :title => l(:label_relation_delete) %></td>
13 }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td>
14 </tr>
14 </tr>
15 <% end %>
15 <% end %>
16 </table>
16 </table>
General Comments 0
You need to be logged in to leave comments. Login now