Class: Spree::PermissionSets::OrderDisplay
- Defined in:
- lib/spree/permission_sets/order_display.rb
Overview
Read permissions for orders.
This permission set allows users to view all related information about orders, also from the admin panel, including:
-
Orders
-
Payments
-
Shipments
-
Adjustments
-
Line items
-
Return authorizations
-
Customer returns
-
Order cancellations
-
Reimbursements
-
Return items
-
Refunds
However, it does not allow any modifications to be made to any of these resources.
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
30 31 32 |
# File 'lib/spree/permission_sets/order_display.rb', line 30 def category :order end |
.privilege ⇒ Object
26 27 28 |
# File 'lib/spree/permission_sets/order_display.rb', line 26 def privilege :display end |
Instance Method Details
#activate! ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/spree/permission_sets/order_display.rb', line 35 def activate! can [:read, :admin, :edit, :cart], Spree::Order can [:read, :admin], Spree::Payment can [:read, :admin], Spree::Shipment can [:read, :admin], Spree::Adjustment can [:read, :admin], Spree::LineItem can [:read, :admin], Spree::ReturnAuthorization can [:read, :admin], Spree::CustomerReturn can [:read, :admin], Spree::OrderCancellations can [:read, :admin], Spree::Reimbursement can [:read, :admin], Spree::ReturnItem can [:read, :admin], Spree::Refund end |