Sha256: e28d38c31755760d908672c9b7d3b3adb500f2cc961ded06d79f9f418b97041c

Contents?: true

Size: 607 Bytes

Versions: 48

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

module Spree
  module PermissionSets
    class ProductDisplay < PermissionSets::Base
      def activate!
        can [:display, :admin, :edit], Spree::Product
        can [:display, :admin], Spree::Image
        can [:display, :admin], Spree::Variant
        can [:display, :admin], Spree::OptionValue
        can [:display, :admin], Spree::ProductProperty
        can [:display, :admin], Spree::OptionType
        can [:display, :admin], Spree::Property
        can [:display, :admin], Spree::Taxonomy
        can [:display, :admin], Spree::Taxon
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core-2.10.5 lib/spree/permission_sets/product_display.rb
solidus_core-2.10.3 lib/spree/permission_sets/product_display.rb
solidus_core-2.10.2 lib/spree/permission_sets/product_display.rb
solidus_core-2.9.6 lib/spree/permission_sets/product_display.rb
solidus_core-2.8.6 lib/spree/permission_sets/product_display.rb
solidus_core-2.10.1 lib/spree/permission_sets/product_display.rb
solidus_core-2.9.5 lib/spree/permission_sets/product_display.rb
solidus_core-2.10.0 lib/spree/permission_sets/product_display.rb
solidus_core-2.9.4 lib/spree/permission_sets/product_display.rb
solidus_core-2.6.6 lib/spree/permission_sets/product_display.rb
solidus_core-2.7.4 lib/spree/permission_sets/product_display.rb
solidus_core-2.8.5 lib/spree/permission_sets/product_display.rb
solidus_core-2.9.3 lib/spree/permission_sets/product_display.rb
solidus_core-2.9.2 lib/spree/permission_sets/product_display.rb
solidus_core-2.10.0.beta1 lib/spree/permission_sets/product_display.rb
solidus_core-2.7.3 lib/spree/permission_sets/product_display.rb
solidus_core-2.6.5 lib/spree/permission_sets/product_display.rb
solidus_core-2.9.1 lib/spree/permission_sets/product_display.rb
solidus_core-2.9.0 lib/spree/permission_sets/product_display.rb
solidus_core-2.9.0.rc.1 lib/spree/permission_sets/product_display.rb