Sha256: 8d3447093d835db216fd344cb6a591450b2c2ab6d40e7b29bbcfd038f7599e5a

Contents?: true

Size: 228 Bytes

Versions: 6

Compression:

Stored size: 228 Bytes

Contents

module Ddr
  module Auth
    class CollectionAbilityDefinitions < AbilityDefinitions

      def call
        if member_of? Groups::COLLECTION_CREATORS
          can :create, ::Collection
        end
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ddr-models-2.0.0.rc1 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.0.0.pre.5 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.0.0.pre.4 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.0.0.pre.3 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.0.0.pre.2 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb
ddr-models-2.0.0.pre.1 lib/ddr/auth/ability_definitions/collection_ability_definitions.rb