Class: Spree::PermissionSets::PromotionManagement

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

Instance Attribute Summary

Attributes inherited from Base

#ability

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



12
13
14
15
16
17
18
19
# File 'app/models/spree/permission_sets/promotion_management.rb', line 12

def activate!
  can :manage, Spree::Promotion
  can :manage, Spree::PromotionRule
  can :manage, Spree::PromotionAction
  can :manage, Spree::PromotionCategory
  can :manage, Spree::CouponCode
  can [:read, :admin], Spree::Metafield
end