debian-mirror-gitlab/lib/service_ping/service_ping_settings.rb
2022-07-17 14:43:12 +02:00

17 lines
383 B
Ruby

# frozen_string_literal: true
module ServicePing
module ServicePingSettings
extend self
def product_intelligence_enabled?
enabled? && !User.single_user&.requires_usage_stats_consent?
end
def enabled?
::Gitlab::CurrentSettings.usage_ping_enabled?
end
end
end
ServicePing::ServicePingSettings.extend_mod_with('ServicePing::ServicePingSettings')