From: Jean-Philippe Lang Date: Fri, 22 Oct 2010 14:45:02 +0000 (+0000) Subject: Fixed: "Add file" link broken by recent refactoring (#6627). X-Git-Tag: 1.1.0~267 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f17c990a77bab4c4ef907f3aebe4191c354c3154;p=redmine.git Fixed: "Add file" link broken by recent refactoring (#6627). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4268 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 20710402b..5a9a5e6fe 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -1,5 +1,5 @@
-<%= 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) %>

<%=l(:label_attachment_plural)%>