From 3ad343fc3341bd609d4d3ef67b67975d204898df Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Tue, 29 Oct 2019 10:33:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=9A=84500=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_user_message_forge.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_user_message_forge.html.erb b/app/views/users/_user_message_forge.html.erb index 3314c38e3..6cde725b8 100644 --- a/app/views/users/_user_message_forge.html.erb +++ b/app/views/users/_user_message_forge.html.erb @@ -218,7 +218,7 @@ <% if ma.forge_message_type == "PullRequest" && PullRequest.exists?(:pull_request_id => ma.forge_message_id) %> <% send_message_user = PullRequest.where(:pull_request_id => ma.forge_message_id) %> <% ma_author = User.find(ma.operate_user_id.nil? ? 2 : ma.operate_user_id) %> - <% user_can_click = User.current.user_can_see_project(ma.forge_message&.project) %> + <% user_can_click = User.current.user_can_see_project(ma&.project) %> <%= link_to image_tag(url_to_avatar(ma_author), class:"r_list_img"), user_path(ma_author), :target => '_blank' %>