Fix update of shared inventories user assignments [SCI-7360]

This commit is contained in:
Oleksii Kriuchykhin 2022-10-25 23:26:20 +02:00
parent d0f604f21e
commit c16d0cb7a6

View file

@ -25,6 +25,9 @@ module UserAssignments
.select { |assignment| assignment[:user_id] == @user.id && assignment[:team_id] == @team.id }
.each { |assignment| assignment.update!(user_role: @user_role) }
end
@team.repository_sharing_user_assignments.where(user: @user).find_each do |assignment|
assignment.update!(user_role: @user_role)
end
end
def update_reports_assignments