From 2d6fdc1d5a53364f63bb235c421cb28c482296c8 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Mon, 23 Sep 2013 09:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E6=9D=83=E9=99=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/index.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 3485f0c08..bf42c5dbd 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -1,6 +1,8 @@ <% if @project.project_type == 1 %>
+ <% if User.current.member_of?(@project) %> <%= link_to(l(:label_file_upload), new_project_file_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:manage_files, @project) %> + <% end %>
<% else %>
@@ -50,3 +52,4 @@ <% html_title(l(:label_attachment_plural)) -%> +