Class: Ddr::Auth::SuperuserAbilityDefinitions

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

Instance Method Summary collapse

Methods inherited from AbilityDefinitions

call

Instance Method Details

#callObject

This bypasses all checks, including ones that look at whether an action is possible, not just allowed. So superusers may initiate actions which will fail.



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

def call
  can :manage, :all
end