Class: Spree::PermissionSets::StockManagement

Inherits:
Base
  • Object
show all
Defined in:
lib/spree/permission_sets/stock_management.rb

Overview

Full permissions for stock management.

This permission set grants full control over all stock items and read access to locations.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Spree::PermissionSets::Base

Instance Method Details

#activate!Object



10
11
12
13
# File 'lib/spree/permission_sets/stock_management.rb', line 10

def activate!
  can :manage, Spree::StockItem
  can :read, Spree::StockLocation
end