Sha256: 9d717a194cd953fb72b51bbe6a8af5f344eddfa7ff52b574991ef2870d336847

Contents?: true

Size: 703 Bytes

Versions: 58

Compression:

Stored size: 703 Bytes

Contents

module Spree
  module PermissionSets
    class OrderDisplay < PermissionSets::Base
      def activate!
        can [:display, :admin, :edit, :cart], Spree::Order
        can [:display, :admin], Spree::Payment
        can [:display, :admin], Spree::Shipment
        can [:display, :admin], Spree::Adjustment
        can [:display, :admin], Spree::LineItem
        can [:display, :admin], Spree::ReturnAuthorization
        can [:display, :admin], Spree::CustomerReturn
        can [:display, :admin], Spree::OrderCancellations
        can [:display, :admin], Spree::Reimbursement
        can [:display, :admin], Spree::ReturnItem
        can [:display, :admin], Spree::Refund
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
solidus_core-2.5.2 lib/spree/permission_sets/order_display.rb
solidus_core-2.5.1 lib/spree/permission_sets/order_display.rb
solidus_core-2.5.0 lib/spree/permission_sets/order_display.rb
solidus_core-2.5.0.rc1 lib/spree/permission_sets/order_display.rb
solidus_core-2.5.0.beta2 lib/spree/permission_sets/order_display.rb
solidus_core-2.5.0.beta1 lib/spree/permission_sets/order_display.rb
solidus_core-2.4.2 lib/spree/permission_sets/order_display.rb
solidus_core-2.3.1 lib/spree/permission_sets/order_display.rb
solidus_core-2.4.1 lib/spree/permission_sets/order_display.rb
solidus_core-2.2.2 lib/spree/permission_sets/order_display.rb
solidus_core-2.1.1 lib/spree/permission_sets/order_display.rb
solidus_core-2.0.3 lib/spree/permission_sets/order_display.rb
solidus_core-1.4.2 lib/spree/permission_sets/order_display.rb
solidus_core-1.3.2 lib/spree/permission_sets/order_display.rb
solidus_core-1.2.3 lib/spree/permission_sets/order_display.rb
solidus_core-1.1.4 lib/spree/permission_sets/order_display.rb
solidus_core-2.4.0 lib/spree/permission_sets/order_display.rb
solidus_core-2.4.0.rc1 lib/spree/permission_sets/order_display.rb
solidus_core-2.4.0.beta1 lib/spree/permission_sets/order_display.rb
solidus_core-2.3.0 lib/spree/permission_sets/order_display.rb