Class: Spree::PermissionSets::PromotionManagement

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

Overview

Full permissions for promotion management.

This permission set grants full control over all promotion and related resources, including:

  • Promotions

  • Promotion rules

  • Promotion actions

  • Promotion categories

  • Promotion codes

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



16
17
18
19
20
21
22
# File 'lib/spree/permission_sets/promotion_management.rb', line 16

def activate!
  can :manage, Spree::Promotion
  can :manage, Spree::PromotionRule
  can :manage, Spree::PromotionAction
  can :manage, Spree::PromotionCategory
  can :manage, Spree::PromotionCode
end