Class: Spree::PermissionSets::ProductDisplay

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

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



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/spree/permission_sets/product_display.rb', line 4

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