Commit b2245b3b authored by Luke Duncalfe's avatar Luke Duncalfe

Delegate a method to current_settings

https://gitlab.com/gitlab-org/gitlab/-/issues/333759
parent 8ee2e9cf
......@@ -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