Commit 41a46db7 authored by Rajendra Kadam's avatar Rajendra Kadam

Add service ping setting module specs

parent 6dc75b78
# frozen_string_literal: true
module ServicePing
module ServicePingSettings
class << self
def product_intelligence_enabled?
pings_enabled? && !User.single_user&.requires_usage_stats_consent?
end
def pings_enabled?
::Gitlab::CurrentSettings.usage_ping_enabled?
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment