Sha256: b17cba399a472e765f17fb6e14904a5621f702ce49524408ae6aea252313a9b7
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
# frozen_string_literal: true module Spree module PermissionSets # Read and write permissions for e-commerce settings. # # Roles with this permission set will have full control over: # # - 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 ConfigurationManagement < PermissionSets::Base class << self def privilege :management end def category :configuration end end def activate! can :manage, Spree::TaxCategory can :manage, Spree::TaxRate can :manage, Spree::Zone can :manage, Spree::Country can :manage, Spree::State can :manage, Spree::PaymentMethod can :manage, Spree::Taxonomy can :manage, Spree::ShippingMethod can :manage, Spree::ShippingCategory can :manage, Spree::StockLocation can :manage, Spree::StockMovement can :manage, Spree::RefundReason can :manage, Spree::ReimbursementType can :manage, Spree::ReturnReason end end end end
Version data entries
3 entries across 3 versions & 1 rubygems