summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-10-22 14:45:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-10-22 14:45:02 +0000
commitf17c990a77bab4c4ef907f3aebe4191c354c3154 (patch)
tree68a362df9f64ac5e3daedc132c95ab1e08b77ca3 /app
parentb26ba17184e5dad4bd71f0d9120363c909e397a3 (diff)
downloadredmine-f17c990a77bab4c4ef907f3aebe4191c354c3154.tar.gz
redmine-f17c990a77bab4c4ef907f3aebe4191c354c3154.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/views/files/index.html.erb2
1 files changed, 1 insertions, 1 deletions
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 @@
<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>