Commit 1a614fb8 authored by Thong Kuah's avatar Thong Kuah

Allowlist another cross-database query callsite

parent 6073309b
......@@ -29,6 +29,7 @@ module Ci
# Fetch all pipelines without permission check.
def all
::Gitlab::Database.allow_cross_joins_across_databases(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/336891') do
strong_memoize(:all_pipelines) do
next Ci::Pipeline.none unless source_project
......@@ -42,6 +43,7 @@ module Ci
sort(pipelines)
end
end
end
private
......
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