Sha256: d4afdb5b42a131946ced4fceae5f57c477811ad78e3979a250ac8cf6aec7d376

Contents?: true

Size: 326 Bytes

Versions: 4

Compression:

Stored size: 326 Bytes

Contents

module CurationConcerns
  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.
    class GrantEditToDepositor
      def self.call(target:, **)
        target.edit_users += [target.depositor]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-1.7.7 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-2.0.0 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-2.0.0.rc2 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb