Class: Spree::PermissionSets::StockManagement
- 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.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spree::PermissionSets::Base
Class Method Details
.category ⇒ Object
15 16 17 |
# File 'lib/spree/permission_sets/stock_management.rb', line 15 def category :stock end |
.privilege ⇒ Object
11 12 13 |
# File 'lib/spree/permission_sets/stock_management.rb', line 11 def privilege :management end |
Instance Method Details
#activate! ⇒ Object
20 21 22 23 |
# File 'lib/spree/permission_sets/stock_management.rb', line 20 def activate! can :manage, Spree::StockItem can :read, Spree::StockLocation end |