Sha256: b7176a0500b550d9d232aa818c8931a9b0ec2ded04eea58839196473f54fe9a7
Contents?: true
Size: 527 Bytes
Versions: 48
Compression:
Stored size: 527 Bytes
Contents
module Hyrax module Workflow # This is a built in function for workflow, so that a workflow action can be created that # removes the creators the ability to alter it. module RevokeEditFromDepositor def self.call(target:, **) target.edit_users -= [target.depositor] # If there are a lot of members, revoking access from each could take a # long time. Do this work in the background. RevokeEditFromMembersJob.perform_later(target, target.depositor) end end end end
Version data entries
48 entries across 48 versions & 1 rubygems