mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-27 17:30:32 +08:00
Fix changing of project default user role by automatically assigned user [SCI-7969] (#5343)
This commit is contained in:
parent
a8bda82799
commit
025c846cb0
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ module UserAssignments
|
|||
return unless project.visible?
|
||||
|
||||
ActiveRecord::Base.transaction do
|
||||
team.users.where.not(id: assigned_by).find_each do |user|
|
||||
team.users.find_each do |user|
|
||||
user_assignment = UserAssignment.find_or_initialize_by(
|
||||
user: user,
|
||||
assignable: project
|
||||
|
|
Loading…
Reference in a new issue