Sha256: 87b4fb384bdb1b813c428fb7134633317829910b2a427927ad0586979de4bee4
Contents?: true
Size: 382 Bytes
Versions: 32
Compression:
Stored size: 382 Bytes
Contents
module Ddr module Auth class EmbargoAbilityDefinitions < AbilityDefinitions def call cannot :read, [::SolrDocument, Ddr::Resource] do |obj| obj.embargoed? && cannot?(:update, obj) end cannot :download, [::SolrDocument, Ddr::Resource] do |obj| obj.embargoed? && cannot?(:update, obj) end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems