Class: Spree::PermissionSets::PrototypeProductManagement

Inherits:
PermissionSets::ProductManagement
  • Object
show all
Defined in:
lib/solidus_prototypes/spree/permission_sets/prototype_product_management.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::PrototypeProductManagement
  ]
end

Examples:

Adding product (with prototype) management to customer service users.

Instance Method Summary collapse

Instance Method Details

#activate!Object



15
16
17
18
# File 'lib/solidus_prototypes/spree/permission_sets/prototype_product_management.rb', line 15

def activate!
  can :manage, Spree::Prototype
  super
end