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' %>