mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-28 17:54:16 +08:00
Fix user removal from a team [SCI-6124]
This commit is contained in:
parent
362658021e
commit
d6cc800679
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ module UserAssignments
|
|||
def perform(user, team)
|
||||
ActiveRecord::Base.transaction do
|
||||
team.projects.each do |project|
|
||||
UserAssignments::PropagateAssignmentJob.perform_now(project, user, nil, nil, true)
|
||||
UserAssignments::PropagateAssignmentJob.perform_now(project, user, nil, nil, destroy: true)
|
||||
UserAssignment.where(user: user, assignable: project).destroy_all
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue