Sha256: 2fb9ee672ec0f6efa51fea914184d6ec486d143fb7fd0039147b1b8a4a9a5d0d

Contents?: true

Size: 508 Bytes

Versions: 4

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module SolidusFriendlyPromotions
  module PermissionSets
    class FriendlyPromotionManagement < Spree::PermissionSets::Base
      def activate!
        can :manage, SolidusFriendlyPromotions::Promotion
        can :manage, SolidusFriendlyPromotions::PromotionRule
        can :manage, SolidusFriendlyPromotions::Benefit
        can :manage, SolidusFriendlyPromotions::PromotionCategory
        can :manage, SolidusFriendlyPromotions::PromotionCode
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.9.3 app/models/solidus_friendly_promotions/permission_sets/friendly_promotion_management.rb
solidus_friendly_promotions-1.9.2 app/models/solidus_friendly_promotions/permission_sets/friendly_promotion_management.rb
solidus_friendly_promotions-1.9.1 app/models/solidus_friendly_promotions/permission_sets/friendly_promotion_management.rb
solidus_friendly_promotions-1.9.0 app/models/solidus_friendly_promotions/permission_sets/friendly_promotion_management.rb