Sha256: 118cbb8ab8c29963f85048523ea31027b1061bad422266dc472dfcbe1457aa96

Contents?: true

Size: 349 Bytes

Versions: 12

Compression:

Stored size: 349 Bytes

Contents

module Spree
  module PermissionSets
    class PromotionDisplay < PermissionSets::Base
      def activate!
        can [:display, :admin], Spree::Promotion
        can [:display, :admin], Spree::PromotionRule
        can [:display, :admin], Spree::PromotionAction
        can [:display, :admin], Spree::PromotionCategory
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
solidus_core-1.0.7 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.6 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.5 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.4 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.3 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.2 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.1 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.0 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.0.rc2 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.0.rc1 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.0.pre3 app/models/spree/permission_sets/promotion_display.rb
solidus_core-1.0.0.pre2 app/models/spree/permission_sets/promotion_display.rb