Sha256: 9d53ae56ccf3b0cbf5455c467621955a87890226b93bfa67ac400c1dfd3f23b9

Contents?: true

Size: 425 Bytes

Versions: 16

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    # Read-only permissions for stock.
    #
    # This permission set allows users to view information about stock items
    # (also from the admin panel) and stock locations.
    class StockDisplay < PermissionSets::Base
      def activate!
        can [:read, :admin], 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_display.rb
solidus_core-4.2.4 lib/spree/permission_sets/stock_display.rb
solidus_core-4.1.5 lib/spree/permission_sets/stock_display.rb
solidus_core-4.3.3 lib/spree/permission_sets/stock_display.rb
solidus_core-4.3.2 lib/spree/permission_sets/stock_display.rb
solidus_core-4.1.4 lib/spree/permission_sets/stock_display.rb
solidus_core-4.3.1 lib/spree/permission_sets/stock_display.rb
solidus_core-4.3.0 lib/spree/permission_sets/stock_display.rb
solidus_core-4.2.3 lib/spree/permission_sets/stock_display.rb
solidus_core-4.1.3 lib/spree/permission_sets/stock_display.rb
solidus_core-4.1.2 lib/spree/permission_sets/stock_display.rb
solidus_core-4.2.2 lib/spree/permission_sets/stock_display.rb
solidus_core-4.2.1 lib/spree/permission_sets/stock_display.rb
solidus_core-4.2.0 lib/spree/permission_sets/stock_display.rb
solidus_core-4.1.1 lib/spree/permission_sets/stock_display.rb
solidus_core-4.1.0 lib/spree/permission_sets/stock_display.rb