Sha256: da632a4acfc62bd155b3da549e881d9de802b95a591dd3672bde537cd3f5d9e3

Contents?: true

Size: 397 Bytes

Versions: 16

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    # Full permissions for stock management.
    #
    # This permission set grants full control over all stock items and read
    # access to locations.
    class StockManagement < PermissionSets::Base
      def activate!
        can :manage, Spree::StockItem
        can :read, Spree::StockLocation
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
solidus_core-4.3.4 lib/spree/permission_sets/stock_management.rb
solidus_core-4.2.4 lib/spree/permission_sets/stock_management.rb
solidus_core-4.1.5 lib/spree/permission_sets/stock_management.rb
solidus_core-4.3.3 lib/spree/permission_sets/stock_management.rb
solidus_core-4.3.2 lib/spree/permission_sets/stock_management.rb
solidus_core-4.1.4 lib/spree/permission_sets/stock_management.rb
solidus_core-4.3.1 lib/spree/permission_sets/stock_management.rb
solidus_core-4.3.0 lib/spree/permission_sets/stock_management.rb
solidus_core-4.2.3 lib/spree/permission_sets/stock_management.rb
solidus_core-4.1.3 lib/spree/permission_sets/stock_management.rb
solidus_core-4.1.2 lib/spree/permission_sets/stock_management.rb
solidus_core-4.2.2 lib/spree/permission_sets/stock_management.rb
solidus_core-4.2.1 lib/spree/permission_sets/stock_management.rb
solidus_core-4.2.0 lib/spree/permission_sets/stock_management.rb
solidus_core-4.1.1 lib/spree/permission_sets/stock_management.rb
solidus_core-4.1.0 lib/spree/permission_sets/stock_management.rb