Sha256: 284f605ec5835f0989024cf157e972e501a5aa2589350d1d4de04026334bd6e9
Contents?: true
Size: 625 Bytes
Versions: 8
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true module Spree module PermissionSets # Adds all product display permissions, with addition # permissions for Spree::Prototype # # @example Adding product (with prototype) management to customer service users. # Spree::RoleConfiguration.configure do |config| # config.assign_permissions :customer_service, [ # Spree::PermissionSets::PrototypeProductManagement # ] # end class PrototypeProductManagement < PermissionSets::ProductManagement def activate! can :manage, Spree::Prototype super end end end end
Version data entries
8 entries across 8 versions & 1 rubygems