Sha256: 702ce44ca2f609fd2465b5ef567df5de4320a28d2edcbe41e4aa68570d52f65c

Contents?: true

Size: 274 Bytes

Versions: 43

Compression:

Stored size: 274 Bytes

Contents

module Ddr
  module Auth
    class LockAbilityDefinitions < AbilityDefinitions

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

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

    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
ddr-core-1.17.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.16.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.15.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.14.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.13.2 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.13.1 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.13.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.12.2 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.12.1 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.12.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.11.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.10.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.9.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.8.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.7.0 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.6.6 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.6.5 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.6.4 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.6.3 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb
ddr-core-1.6.2 lib/ddr/auth/ability_definitions/lock_ability_definitions.rb