mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 05:04:35 +08:00
Merge pull request #8823 from artoscinote/ma_SCI_12284
Properly scope assignments to team in GenerateUserAssignmentsJob [SCI-12284]
This commit is contained in:
commit
598c97918a
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ module UserAssignments
|
|||
|
||||
new_assignment = parent_assignment.class.find_or_initialize_by(
|
||||
"#{type}_id": parent_assignment.public_send(type).id,
|
||||
assignable: resource
|
||||
assignable: resource,
|
||||
team_id: parent_assignment.team_id
|
||||
)
|
||||
|
||||
return if new_assignment.manually_assigned?
|
||||
|
|
Loading…
Add table
Reference in a new issue