Class: Spree::PermissionSets::ProductManagement

Inherits:
Base
  • Object
show all
Defined in:
lib/spree/permission_sets/product_management.rb

Overview

Full permissions for product management.

This permission set grants full control over all product and related resources, including:

  • Products

  • Images

  • Variants

  • Option values

  • Product properties

  • Option types

  • Properties

  • Taxonomies

  • Taxons

  • Classifications

  • Prices

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Spree::PermissionSets::Base

Instance Method Details

#activate!Object



22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/spree/permission_sets/product_management.rb', line 22

def activate!
  can :manage, Spree::Classification
  can :manage, Spree::Image
  can :manage, Spree::OptionType
  can :manage, Spree::OptionValue
  can :manage, Spree::Price
  can :manage, Spree::Product
  can :manage, Spree::ProductProperty
  can :manage, Spree::Property
  can :manage, Spree::Taxon
  can :manage, Spree::Taxonomy
  can :manage, Spree::Variant
end