mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-13 21:44:32 +08:00
新增:组织数据修复任务
This commit is contained in:
@@ -70,4 +70,15 @@ class Team < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def to_gitea_hash
|
||||
{
|
||||
can_create_org_repo: self.can_create_org_project,
|
||||
description: self.description || "",
|
||||
includes_all_repositories: self.includes_all_project,
|
||||
name: self.name,
|
||||
permission: self.authorize,
|
||||
units: self.team_units.pluck(:unit_type).map{|i| "repo.#{i}"}
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user