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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-31 17:31:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-31 17:31:42 +0300
commitd7fe9575a00f0e734977cc15a5af92e8674bb379 (patch)
treeecf120856d0d336ac38ca18d0d2c8b1a3a5ca1ee /app/models/project.rb
parent63a18ecf9b62aba2e0b8b739521c86cf9ce9c746 (diff)
Add latest changes from gitlab-org/security/gitlab@16-1-stable-ee
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index be5f85a25e2..452a5c8973c 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -579,8 +579,6 @@ class Project < ApplicationRecord
validates :max_artifacts_size, numericality: { only_integer: true, greater_than: 0, allow_nil: true }
validates :suggestion_commit_message, length: { maximum: MAX_SUGGESTIONS_TEMPLATE_LENGTH }
- validate :path_availability, if: :path_changed?
-
# Scopes
scope :pending_delete, -> { where(pending_delete: true) }
scope :without_deleted, -> { where(pending_delete: false) }
@@ -3243,15 +3241,6 @@ class Project < ApplicationRecord
end
strong_memoize_attr :frozen_outbound_job_token_scopes?
- def path_availability
- base, _, host = path.partition('.')
-
- return unless host == Gitlab.config.pages&.dig('host')
- return unless ProjectSetting.where(pages_unique_domain: base).exists?
-
- errors.add(:path, s_('Project|already in use'))
- end
-
private
def pages_unique_domain_enabled?