Sha256: ae139b6bfcafbb71dd8411a716b6bdec7df5067af28a4d9bb09d4b5f8f4d7376
Contents?: true
Size: 450 Bytes
Versions: 48
Compression:
Stored size: 450 Bytes
Contents
module Hyrax # Grants the user's edit access on the provided FileSet class GrantEditJob < 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.edit_users += [user_key] file_set.save! end end end
Version data entries
48 entries across 48 versions & 1 rubygems