Module: Hyrax::Workflow::RevokeEditFromDepositor
- Defined in:
- app/services/hyrax/workflow/revoke_edit_from_depositor.rb
Overview
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.
Class Method Summary collapse
Class Method Details
.call(target:) ⇒ Object
6 7 8 9 10 11 |
# File 'app/services/hyrax/workflow/revoke_edit_from_depositor.rb', line 6 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 |