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.3 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.2 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.4 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.1 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.0 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.0.rc6 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.3 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.0.rc5 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.0.rc4 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.2 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.0.rc3 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.0.rc2 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.4.0.rc1 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.3.2 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.beta.1 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.3.1 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.alpha.4 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.alpha.3 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.3.0 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-3.0.0.alpha.2 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb