mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
fix: owner allow nil
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
json.type @owner.type
|
||||
json.type @owner&.type
|
||||
if @owner.is_a?(Organization)
|
||||
json.partial! "organizations/organizations/detail", organization: @owner
|
||||
json.can_create_project @can_create_project
|
||||
|
||||
Reference in New Issue
Block a user