Sha256: 87eb7bcf8ec6270949f55f408ee803be8716fba72f6f4646730041821667605f

Contents?: true

Size: 300 Bytes

Versions: 15

Compression:

Stored size: 300 Bytes

Contents

module Ddr
  module Auth
    class LockAbilityDefinitions < AbilityDefinitions

      DENIED_WHEN_LOCKED = [ :add_children, :update, :replace, :arrange, :publish, :unpublish, :grant ]

      def call
        cannot DENIED_WHEN_LOCKED, Ddr::Models::Base, :locked? => true
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ddr-models-3.0.8 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.7 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.6 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.5 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.4 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.3 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.2 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.1 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.0.rc6 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.0.rc5 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.0.rc4 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.0.rc3 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.0.rc2 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-models-3.0.0.rc1 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb