Class: Spree::PermissionSets::PrototypeProductDisplay

Inherits:
PermissionSets::ProductDisplay
  • Object
show all
Defined in:
lib/solidus_prototypes/spree/permission_sets/prototype_product_display.rb

Overview

Adds all product display permissions, with addition permissions for Spree::Prototype

Spree::RoleConfiguration.configure do |config|

  config.assign_permissions :customer_service, [
    Spree::PermissionSets::OrderDisplay,
    Spree::PermissionSets::UserDisplay,
    Spree::PermissionSets::PrototypeProductDisplay
  ]
end

Examples:

Adding order, user, and product (with prototype) display to customer service users.

Instance Method Summary collapse

Instance Method Details

#activate!Object



17
18
19
20
# File 'lib/solidus_prototypes/spree/permission_sets/prototype_product_display.rb', line 17

def activate!
  can [:display, :admin], Spree::Prototype
  super
end