Sha256: 2b3883e5d78751c8b1e235e24ebf295c7c203bf84469587a0d4938a883c302be

Contents?: true

Size: 316 Bytes

Versions: 8

Compression:

Stored size: 316 Bytes

Contents

module Hyrax
  module Workflow
    # This is a built in function for workflow, so that a workflow action can be created that
    # grants the creator the ability to alter it.
    module GrantEditToDepositor
      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/grant_edit_to_depositor.rb
hyrax-1.1.0 app/services/hyrax/workflow/grant_edit_to_depositor.rb
hyrax-1.0.5 app/services/hyrax/workflow/grant_edit_to_depositor.rb
hyrax-1.0.4 app/services/hyrax/workflow/grant_edit_to_depositor.rb
hyrax-1.0.3 app/services/hyrax/workflow/grant_edit_to_depositor.rb
hyrax-1.0.2 app/services/hyrax/workflow/grant_edit_to_depositor.rb
hyrax-1.0.1 app/services/hyrax/workflow/grant_edit_to_depositor.rb
hyrax-1.0.0.rc2 app/services/hyrax/workflow/grant_edit_to_depositor.rb