Skip to content
Snippets Groups Projects
Commit 73466575 authored by Kapil Patel's avatar Kapil Patel
Browse files

update rake task to add participants in admin_sets

parent 04613f3b
No related tags found
1 merge request!191Updated rake task to add participants in admin_sets
Pipeline #8030 failed
......@@ -23,6 +23,12 @@ namespace :hyrax do
mediated_workflow = admin_set.permission_template.available_workflows.where(name: workflow_name).first
Sipity::Workflow.activate!(permission_template: admin_set.permission_template, workflow_id: mediated_workflow.id)
# update Participants
access_grants_params = {access_grants_attributes:{'0'=> {agent_type: "group", agent_id: "publication_manager", access:"manage"}}}
permission_template_form = Hyrax::Forms::PermissionTemplateForm.new(admin_set.permission_template)
permission_template_form.update(access_grants_params)
end
end
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment