mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 09:13:05 +08:00
Fix update of shared inventories user assignments [SCI-7360]
This commit is contained in:
parent
d0f604f21e
commit
c16d0cb7a6
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue