Sha256: 2f0b8fbb13fe70991b78117c583919c92dff2bbd0d2eb0cb3d51393d159c6ec6

Contents?: true

Size: 236 Bytes

Versions: 55

Compression:

Stored size: 236 Bytes

Contents

module Ddr
  module Auth
    class CollectionAbilityDefinitions < AbilityDefinitions

      def call
        if member_of? Ddr::Auth.collection_creators_group
          can :create, ::Collection
        end
      end

    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
ddr-models-2.4.14 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.13 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.12 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.11 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.10 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.9 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.8 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.14 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.13 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.12 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.11 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.7 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.6 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.5 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.10 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.9 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.8 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.7 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.4 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.6 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb