fix: org transfer bug

This commit is contained in:
vilet.yy 2021-06-03 09:48:58 +08:00
parent c727ccf3e6
commit e4a40fb382
1 changed files with 1 additions and 1 deletions

View File

@ -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