Sha256: 9242ca3363b6fe706961c0d819154dddf7891869ed738416d6d880b947204373

Contents?: true

Size: 321 Bytes

Versions: 8

Compression:

Stored size: 321 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]
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-1.1.0 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-1.0.5 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-1.0.4 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-1.0.3 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-1.0.2 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-1.0.1 app/services/hyrax/workflow/revoke_edit_from_depositor.rb
hyrax-1.0.0.rc2 app/services/hyrax/workflow/revoke_edit_from_depositor.rb