mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-22 23:48:18 +08:00
Clear user assignments when duplicating protocol [SCI-8263]
This commit is contained in:
parent
a17a893daf
commit
e26ed3d852
1 changed files with 1 additions and 5 deletions
|
@ -593,16 +593,12 @@ class Protocol < ApplicationRecord
|
|||
added_by: current_user,
|
||||
last_modified_by: current_user,
|
||||
team: team,
|
||||
protocol_type: :in_repository_draft,
|
||||
skip_user_assignments: true,
|
||||
visibility: visibility,
|
||||
default_public_user_role_id: default_public_user_role_id
|
||||
protocol_type: :in_repository_draft
|
||||
)
|
||||
|
||||
cloned = deep_clone(clone, current_user)
|
||||
|
||||
if cloned
|
||||
deep_clone_user_assginments(clone)
|
||||
Activities::CreateActivityService
|
||||
.call(activity_type: :copy_protocol_in_repository,
|
||||
owner: current_user,
|
||||
|
|
Loading…
Reference in a new issue