Class: Ddr::Auth::LockAbilityDefinitions

Inherits:
AbilityDefinitions show all
Defined in:
lib/ddr/auth/ability_definitions/lock_ability_definitions.rb

Constant Summary collapse

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

Instance Method Summary collapse

Methods inherited from AbilityDefinitions

call

Instance Method Details

#callObject



7
8
9
# File 'lib/ddr/auth/ability_definitions/lock_ability_definitions.rb', line 7

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