Skip to content

Commit

Permalink
Merge pull request #6524 from samvera/fix-valk-batch-create-proxy
Browse files Browse the repository at this point in the history
Add change_depositor step to fix valkyrie batch deposit as a proxy depositor
  • Loading branch information
bwatson78 authored Dec 8, 2023
2 parents 6ecf674 + 734b189 commit cd355f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/jobs/create_work_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def batch_create_valkyrie_work(work, attributes, user)
.with_step_args(
'work_resource.add_file_sets' => { uploaded_files: files },
'change_set.set_user_as_depositor' => { user: user },
'work_resource.change_depositor' => { user: ::User.find_by_user_key(form.on_behalf_of) },
'work_resource.save_acl' => { permissions_params: permissions_params }
)
.call(form)
Expand Down

0 comments on commit cd355f9

Please sign in to comment.