forked from Trustie/forgeplus
fix: org transfer bug
This commit is contained in:
parent
c727ccf3e6
commit
e4a40fb382
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue