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.6.1 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.6.0 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.5.5 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.5.4 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.5.2 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.5.3 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.5.1 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.4.4 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.4.3 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.4.2 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.4.0 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.3.0 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.2.0 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.2.0.rc3 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.2.0.rc2 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb
ddr-core-1.2.0.rc1 lib/ddr/auth/ability_definitions/superuser_ability_definitions.rb