- Defined in:
Full permissions for stock management limited to allowed locations.
This permission set grants full control over all stock items a user has access to their locations. Those locations are also readable by the corresponding ability.
Instance Method Summary collapse
Methods inherited from
This class inherits a constructor from
Instance Method Details
#activate! ⇒ Object
11 12 13 14
# File 'lib/spree/permission_sets/restricted_stock_management.rb', line 11 def activate! can :manage, ::, stock_location_id: location_ids can :read, ::, id: location_ids end