module Rewards
  class CampaignPolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def invalidate_cache?
      allowed?
    end

    def allowed?
      user.permitted? BeefCake::Permission.for(:rewards)
    end
  end
end
