mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
fix: org transfer bug
This commit is contained in:
@@ -34,7 +34,7 @@ class Projects::TransferService < ApplicationService
|
||||
def update_visit_teams
|
||||
if new_owner.is_a?(Organization)
|
||||
# 为包含组织所有项目的团队创建项目访问权限
|
||||
new_owner.build_permit_team_projects(project.id)
|
||||
new_owner.build_permit_team_projects!(project.id)
|
||||
else
|
||||
project.team_projects.each(&:destroy!)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user