Class: Spree::PermissionSets::OrderManagement
- Defined in:
- app/models/spree/permission_sets/order_management.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spree::PermissionSets::Base
Instance Method Details
#activate! ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'app/models/spree/permission_sets/order_management.rb', line 12 def activate! can :manage, Spree::Order can :manage, Spree::Payment can :manage, Spree::Shipment can :manage, Spree::Adjustment can :manage, Spree::LineItem can :manage, Spree::ReturnAuthorization can :manage, Spree::CustomerReturn can :manage, Spree::Reimbursement can :manage, Spree::Refund can :manage, Spree::StoreCredit can :manage, Spree::GiftCard # Order-specific restrictions cannot :cancel, Spree::Order can :cancel, Spree::Order, &:allow_cancel? cannot :destroy, Spree::Order can :destroy, Spree::Order, &:can_be_deleted? end |