Sha256: 0dd56d653b2cfae0dfb5415752030f33ef4e26ce42b9e7f39a0951ddd9738270
Contents?: true
Size: 323 Bytes
Versions: 1
Compression:
Stored size: 323 Bytes
Contents
module CurationConcerns module Workflow # This is a built in function for workflow, so that a workflow action can be created that # removes the creators ability to alter it. class RemoveDepositorPermissions def self.call(entity:, **) entity.proxy_for.edit_users = [] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-1.7.0.beta1 | app/services/curation_concerns/workflow/remove_depositor_permissions.rb |