Class: Spree::PermissionSets::StockDisplay
- Defined in:
- lib/spree/permission_sets/stock_display.rb
Overview
Read-only permissions for stock.
This permission set allows users to view information about stock items (also from the admin panel) and stock locations.
Instance Method Summary collapse
Methods inherited from Base
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_display.rb', line 10 def activate! can [:read, :admin], Spree::StockItem can :read, Spree::StockLocation end |