Sha256: 6a53521a2aafcddcb1391951321a13c138af27b40a282a6c4234b4d83f558e0e

Contents?: true

Size: 304 Bytes

Versions: 36

Compression:

Stored size: 304 Bytes

Contents

module Ddr::Auth
  class SuperuserAbilityDefinitions < AbilityDefinitions

    # 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.
    def call
      can :manage, :all
    end

  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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