mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +08:00
Fix assignments after my module creation [SCI-6552] (#3871)
This commit is contained in:
parent
10821edbba
commit
c4a75d7543
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ module UserAssignments
|
|||
end
|
||||
|
||||
def assign_users_to_my_module(my_module)
|
||||
project = my_module.experiment.project
|
||||
project.user_assignments.find_each do |user_assignment|
|
||||
experiment = my_module.experiment
|
||||
experiment.user_assignments.find_each do |user_assignment|
|
||||
create_or_update_user_assignment(user_assignment, my_module)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue