From f2d93c0b72a8723ca30a490df373023b4104d4b5 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 22 Jan 2016 20:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9issue=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_project_issue.html.erb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/users/_project_issue.html.erb b/app/views/users/_project_issue.html.erb index 725a064cc..1e9f1bb68 100644 --- a/app/views/users/_project_issue.html.erb +++ b/app/views/users/_project_issue.html.erb @@ -52,10 +52,12 @@ <%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>user_activity_id, :content=>activity.description} %> <%# 局部刷新:修改xissue属性 %> - <% unless params[:action] == "index" %> -
- <%= render :partial => 'users/project_issue_detail', :locals => {:activity => activity} %> -
+ <% if is_project_manager?(User.current, activity.project) %> + <% unless params[:action] == "index" %> +
+ <%= render :partial => 'users/project_issue_detail', :locals => {:activity => activity} %> +
+ <% end %> <% end %>