Sha256: 5b408539ff6f6c669f883ebd9617a2d5de301372afe8ab8d6bb79daf682c7a9e

Contents?: true

Size: 325 Bytes

Versions: 8

Compression:

Stored size: 325 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

8 entries across 8 versions & 1 rubygems

Version Path
curation_concerns-1.7.6 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-1.7.5 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-1.7.4 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-1.7.3 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-1.7.2 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-2.0.0.rc1 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-1.7.1 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb
curation_concerns-1.7.0 app/services/curation_concerns/workflow/grant_edit_to_depositor.rb