]> source.dussan.org Git - redmine.git/commitdiff
Fixed: "Add file" link broken by recent refactoring (#6627).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 22 Oct 2010 14:45:02 +0000 (14:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 22 Oct 2010 14:45:02 +0000 (14:45 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4268 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/files/index.html.erb

index 20710402b2519c18245c4860c77f63103ff8062a..5a9a5e6fe703193872356d12fed1a8df8c20d404 100644 (file)
@@ -1,5 +1,5 @@
 <div class="contextual">
-<%= link_to_if_authorized l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add' %>
+<%= link_to(l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:manage_files, @project) %>
 </div>
 
 <h2><%=l(:label_attachment_plural)%></h2>