Sha256: 49c4c7bcf83088ad0328fb10f1d7aeb3983aa68d5c3ca43d826cae4406d6c410
Contents?: true
Size: 634 Bytes
Versions: 29
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true module Hyrax # Grants read access for the supplied user for the members attached to a work class GrantReadToMembersJob < ApplicationJob include MembersPermissionJobBehavior # @param work [ActiveFedora::Base] the work object # @param user_key [String] the user to add def perform(work, user_key) # Iterate over ids because reifying objects is slow. file_set_ids(work).each do |file_set_id| # Call this synchronously, since we're already in a job GrantReadJob.perform_now(file_set_id, user_key, use_valkyrie: use_valkyrie?(work)) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems