Sha256: 8e7ec8770303ffa93722d263e6988097d25fdc371a12d066e09a79aca72a6859

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true
def ensure_deposit_available_for(user)
  template = create(:permission_template, with_admin_set: true, with_workflows: true)
  # Grant the user access to deposit into an admin set.
  create(:permission_template_access,
         :deposit,
         permission_template: template,
         agent_type: 'user',
         agent_id: user.user_key)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyrax-5.0.0 spec/support/features/workflow.rb
hyrax-5.0.0.rc3 spec/support/features/workflow.rb