mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-07 06:56:18 +08:00
switch current_team to repository.team
This commit is contained in:
parent
9baaad25b6
commit
f3af8f4524
2 changed files with 3 additions and 3 deletions
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
module RepositoryActions
|
||||
class DuplicateCell
|
||||
def initialize(cell, new_row, user)
|
||||
def initialize(cell, new_row, user, team)
|
||||
@cell = cell
|
||||
@new_row = new_row
|
||||
@user = user
|
||||
@team = user.current_team
|
||||
@team = team
|
||||
end
|
||||
|
||||
def call
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ module RepositoryActions
|
|||
|
||||
def duplicate_repository_cell(cell, new_row)
|
||||
RepositoryActions::DuplicateCell.new(
|
||||
cell, new_row, @user
|
||||
cell, new_row, @user, @repository.team
|
||||
).call
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue