From f17c990a77bab4c4ef907f3aebe4191c354c3154 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 22 Oct 2010 14:45:02 +0000 Subject: [PATCH] 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 --- app/views/files/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)%>

-- 2.39.5