Sha256: 6f75214d78d6673ad582b9c27576b5aaa9f5f32587dd199309b7c0a8b8df6d20

Contents?: true

Size: 959 Bytes

Versions: 48

Compression:

Stored size: 959 Bytes

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    class ConfigurationDisplay < PermissionSets::Base
      def activate!
          can [:edit, :admin], :general_settings
          can [:display, :admin], Spree::TaxCategory
          can [:display, :admin], Spree::TaxRate
          can [:display, :admin], Spree::Zone
          can [:display, :admin], Spree::Country
          can [:display, :admin], Spree::State
          can [:display, :admin], Spree::PaymentMethod
          can [:display, :admin], Spree::Taxonomy
          can [:display, :admin], Spree::ShippingMethod
          can [:display, :admin], Spree::ShippingCategory
          can [:display, :admin], Spree::StockLocation
          can [:display, :admin], Spree::StockMovement
          can [:display, :admin], Spree::RefundReason
          can [:display, :admin], Spree::ReimbursementType
          can [:display, :admin], Spree::ReturnReason
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core-2.8.4 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.8.3 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.7.2 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.6.4 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.8.2 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.8.1 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.6.3 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.8.0 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.7.1 lib/spree/permission_sets/configuration_display.rb
solidus_core-2.6.2 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.14 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.13 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.12 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.11 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.10 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.9 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.8 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.7 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.6 lib/spree/permission_sets/configuration_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.5 lib/spree/permission_sets/configuration_display.rb