Sha256: dfda4acef9807a1de7633effc64bcd2af5371560fe2e63c59bd8a2ef2e8fb673
Contents?: true
Size: 642 Bytes
Versions: 29
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true module Hyrax # Revokes edit access for the supplied user for the members attached to a work class RevokeEditFromMembersJob < ApplicationJob include MembersPermissionJobBehavior # @param work [ActiveFedora::Base] the work object # @param user_key [String] the user to remove 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 RevokeEditJob.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