Sha256: 284f605ec5835f0989024cf157e972e501a5aa2589350d1d4de04026334bd6e9

Contents?: true

Size: 625 Bytes

Versions: 8

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    # Adds all product display permissions, with addition
    # permissions for Spree::Prototype
    #
    # @example Adding product (with prototype) management to customer service users.
    # Spree::RoleConfiguration.configure do |config|
    #     config.assign_permissions :customer_service, [
    #       Spree::PermissionSets::PrototypeProductManagement
    #     ]
    #   end
    class PrototypeProductManagement < PermissionSets::ProductManagement
      def activate!
        can :manage, Spree::Prototype
        super
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solidus_prototypes-1.6.0 lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb
solidus_prototypes-1.5.1 lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb
solidus_prototypes-1.5.0 lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb
solidus_prototypes-1.4.0 lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb
solidus_prototypes-1.3.0 lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb
solidus_prototypes-1.2.0 lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb
solidus_prototypes-1.1.1 lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb
solidus_prototypes-1.1.0 lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb