Merge pull request '修复project为User时 CLA关系不存在时导致的问题' (#79) from KingChan/forgeplus:chenjing into standalone_develop

This commit is contained in:
KingChan 2023-06-26 11:01:04 +08:00
commit ff53e15b31
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ json.identifier project.identifier
json.name project.name
json.description project.description
json.is_public project.is_public
json.pr_need @project.owner&.cla.try(:pr_need)
json.pr_need @project.owner.class == User ? false : @project.owner&.cla.try(:pr_need)
json.owner do
json.partial! "/users/user_simple", locals: {user: project.owner}
end