Sha256: 15870b7525fd642cb345766e4efa75815ffe0c98fcadb2f7b5bfa39e609e6991

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 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 view their work.
    module GrantReadToDepositor
      # @param [#read_users=, #read_users] target (likely an ActiveRecord::Base) to which we are adding read_users for the depositor
      # @return void
      def self.call(target:, **)
        target.read_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_read_to_depositor.rb
hyrax-1.1.0 app/services/hyrax/workflow/grant_read_to_depositor.rb
hyrax-1.0.5 app/services/hyrax/workflow/grant_read_to_depositor.rb
hyrax-1.0.4 app/services/hyrax/workflow/grant_read_to_depositor.rb
hyrax-1.0.3 app/services/hyrax/workflow/grant_read_to_depositor.rb
hyrax-1.0.2 app/services/hyrax/workflow/grant_read_to_depositor.rb
hyrax-1.0.1 app/services/hyrax/workflow/grant_read_to_depositor.rb
hyrax-1.0.0.rc2 app/services/hyrax/workflow/grant_read_to_depositor.rb