Class: Spree::PermissionSets::ProductDisplay
- Defined in:
- lib/spree/permission_sets/product_display.rb
Overview
Read-only permissions for products.
This permission set allows users to view all related information about products, also from the admin panel, including:
-
Products
-
Images
-
Variants
-
Option values
-
Product properties
-
Option types
-
Properties
-
Taxonomies
-
Taxons
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spree::PermissionSets::Base
Instance Method Details
#activate! ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/spree/permission_sets/product_display.rb', line 20 def activate! can [:read, :admin, :edit], Spree::Product can [:read, :admin], Spree::Image can [:read, :admin], Spree::Variant can [:read, :admin], Spree::OptionValue can [:read, :admin], Spree::ProductProperty can [:read, :admin], Spree::OptionType can [:read, :admin], Spree::Property can [:read, :admin], Spree::Taxonomy can [:read, :admin], Spree::Taxon end |