Sha256: ec4ff7891f7643443b283f69601c7e9a2f1f925034bbc299e5cf72706a494fe3
Contents?: true
Size: 634 Bytes
Versions: 29
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true module Hyrax # Grants edit access for the supplied user for the members attached to a work class GrantEditToMembersJob < 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 GrantEditJob.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