Sha256: 0c415e9363d3f395f972b49f9eb27aa8ec696533b539fd9ba7ef34d2a1d6bda2

Contents?: true

Size: 1.31 KB

Versions: 16

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    # Read-only permissions for e-commerce settings.
    #
    # Roles with this permission will be able to view information, also from the admin
    # panel, about:
    #
    # - Tax categories
    # - Tax rates
    # - Zones
    # - Countries
    # - States
    # - Payment methods
    # - Taxonomies
    # - Shipping methods
    # - Shipping categories
    # - Stock locations
    # - Stock movements
    # - Refund reasons
    # - Reimbursement types
    # - Return reasons
    class ConfigurationDisplay < PermissionSets::Base
      def activate!
          can [:read, :admin], Spree::TaxCategory
          can [:read, :admin], Spree::TaxRate
          can [:read, :admin], Spree::Zone
          can [:read, :admin], Spree::Country
          can [:read, :admin], Spree::State
          can [:read, :admin], Spree::PaymentMethod
          can [:read, :admin], Spree::Taxonomy
          can [:read, :admin], Spree::ShippingMethod
          can [:read, :admin], Spree::ShippingCategory
          can [:read, :admin], Spree::StockLocation
          can [:read, :admin], Spree::StockMovement
          can [:read, :admin], Spree::RefundReason
          can [:read, :admin], Spree::ReimbursementType
          can [:read, :admin], Spree::ReturnReason
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
solidus_core-4.3.4 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.2.4 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.1.5 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.3.3 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.3.2 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.1.4 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.3.1 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.3.0 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.2.3 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.1.3 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.1.2 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.2.2 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.2.1 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.2.0 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.1.1 lib/spree/permission_sets/configuration_display.rb
solidus_core-4.1.0 lib/spree/permission_sets/configuration_display.rb