Commit be1a0c21 authored by charlie ablett's avatar charlie ablett

Merge branch '333759-delegate-to-current_settings' into 'master'

Delegate a method to current_settings

See merge request gitlab-org/gitlab!64573
parents beb0ca0f b2245b3b
......@@ -134,6 +134,8 @@ module Integrations
private
delegate :allow_local_requests_from_web_hooks_and_services?, to: :current_settings, private: true
def self_monitoring_project?
project && project.id == current_settings.self_monitoring_project_id
end
......@@ -142,10 +144,6 @@ module Integrations
api_url.present? && api_url == ::Gitlab::Prometheus::Internal.uri
end
def allow_local_requests_from_web_hooks_and_services?
current_settings.allow_local_requests_from_web_hooks_and_services?
end
def should_return_client?
api_url.present? && manual_configuration? && active? && valid?
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