Class: Spree::PermissionSets::ProductManagement
- 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
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spree::PermissionSets::Base
Class Method Details
.category ⇒ Object
27 28 29 |
# File 'lib/spree/permission_sets/product_management.rb', line 27 def category :product end |
.privilege ⇒ Object
23 24 25 |
# File 'lib/spree/permission_sets/product_management.rb', line 23 def privilege :management end |
Instance Method Details
#activate! ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/spree/permission_sets/product_management.rb', line 32 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 |