Sha256: b7176a0500b550d9d232aa818c8931a9b0ec2ded04eea58839196473f54fe9a7

Contents?: true

Size: 527 Bytes

Versions: 48

Compression:

Stored size: 527 Bytes

Contents

module Hyrax
  module Workflow
    # This is a built in function for workflow, so that a workflow action can be created that
    # removes the creators the ability to alter it.
    module RevokeEditFromDepositor
      def self.call(target:, **)
        target.edit_users -= [target.depositor]
        # If there are a lot of members, revoking access from each could take a
        # long time. Do this work in the background.
        RevokeEditFromMembersJob.perform_later(target, target.depositor)
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.9.5 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.9.4 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.9.3 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.9.2 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.9.1 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.9.0 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.8.0 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.7.2 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.7.1 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.7.0 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.6.0 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-3.0.0.pre.rc1 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-3.0.0.pre.beta3 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.5.1 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.5.0 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-3.0.0.pre.beta2 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.4.1 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-3.0.0.pre.beta1 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-2.4.0 app/services/hyrax/workflow/revoke_edit_from_depositor.rb