diff options
Diffstat (limited to 'app/models/project_setting.rb')
-rw-r--r-- | app/models/project_setting.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/models/project_setting.rb b/app/models/project_setting.rb index aeefa5c8dcd..7ca74d4e970 100644 --- a/app/models/project_setting.rb +++ b/app/models/project_setting.rb @@ -59,8 +59,6 @@ class ProjectSetting < ApplicationRecord validate :validates_mr_default_target_self - validate :pages_unique_domain_availability, if: :pages_unique_domain_changed? - attribute :legacy_open_source_license_available, default: -> do Feature.enabled?(:legacy_open_source_license_available, type: :ops) end @@ -111,15 +109,6 @@ class ProjectSetting < ApplicationRecord pages_unique_domain_enabled || pages_unique_domain_in_database.present? end - - def pages_unique_domain_availability - host = Gitlab.config.pages&.dig('host') - - return if host.blank? - return unless Project.where(path: "#{pages_unique_domain}.#{host}").exists? - - errors.add(:pages_unique_domain, s_('ProjectSetting|already in use')) - end end ProjectSetting.prepend_mod |