Sha256: a1020cc2c70dfdb0aa51c5c9f93f48eb63a579e323ff68b477c740289bdf6ce0

Contents?: true

Size: 218 Bytes

Versions: 117

Compression:

Stored size: 218 Bytes

Contents

module Ddr
  module Auth
    class EventAbilityDefinitions < AbilityDefinitions

      def call
        can :read, Ddr::Events::Event do |event|
          can? :read, event.pid
        end
      end

    end
  end
end

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
ddr-models-2.1.1 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.1.0 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.1.0.rc2 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.1.0.rc1 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.1 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.rc6 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.rc5 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.rc4 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.rc3 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.rc2 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.rc1 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.pre.5 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.pre.4 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.pre.3 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.pre.2 lib/ddr/auth/ability_definitions/event_ability_definitions.rb
ddr-models-2.0.0.pre.1 lib/ddr/auth/ability_definitions/event_ability_definitions.rb