Sha256: 78a690fd4a3492ce6cabb632ca9f43090e3aa617a3a1a014508161872dfd24af
Contents?: true
Size: 450 Bytes
Versions: 48
Compression:
Stored size: 450 Bytes
Contents
module Hyrax # Grants the user's read access on the provided FileSet class GrantReadJob < ApplicationJob queue_as Hyrax.config.ingest_queue_name # @param [String] file_set_id - the identifier of the object to grant access to # @param [String] user_key - the user to add def perform(file_set_id, user_key) file_set = ::FileSet.find(file_set_id) file_set.read_users += [user_key] file_set.save! end end end
Version data entries
48 entries across 48 versions & 1 rubygems