Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/pages/virtual_host_finder.rb')
-rw-r--r--lib/gitlab/pages/virtual_host_finder.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/pages/virtual_host_finder.rb b/lib/gitlab/pages/virtual_host_finder.rb
index 87fbf547770..5fec60188f8 100644
--- a/lib/gitlab/pages/virtual_host_finder.rb
+++ b/lib/gitlab/pages/virtual_host_finder.rb
@@ -27,10 +27,9 @@ module Gitlab
attr_reader :host
def by_unique_domain(name)
- return unless Feature.enabled?(:pages_unique_domain)
-
project = Project.by_pages_enabled_unique_domain(name)
+ return unless Feature.enabled?(:pages_unique_domain, project)
return unless project&.pages_deployed?
::Pages::VirtualDomain.new(projects: [project])