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_devise_token_auth-2.8.0.alpha.4 lib/spree/permission_sets/product_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.3 lib/spree/permission_sets/product_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.1 lib/spree/permission_sets/product_display.rb
solidus_core_devise_token_auth-2.8.0.alpha.0 lib/spree/permission_sets/product_display.rb
solidus_core-2.7.0 lib/spree/permission_sets/product_display.rb
solidus_core-2.6.1 lib/spree/permission_sets/product_display.rb
solidus_core-2.6.0 lib/spree/permission_sets/product_display.rb
solidus_core-2.6.0.rc1 lib/spree/permission_sets/product_display.rb