Merge branch 'pulls/783/remove-new-issue-link-if-unauthorized' of https://github.com/finnlabs/chiliproject into unstable

This commit is contained in:
Holger Just 2012-01-17 20:14:25 +01:00
commit 3f325243ce
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<% if @project %>
<div class="new-issue button-large">
<%= link_to(l(:label_issue_new), {:controller => 'issues', :action => 'new', :project_id => @project}, :title => l(:label_issue_new), :class => '') %>
<%= link_to_if_authorized(l(:label_issue_new), {:controller => 'issues', :action => 'new', :project_id => @project}, :title => l(:label_issue_new), :class => '') %>
</div>
<% end %>