From e1bf40e293409d974a8013685ec544c0f633ef16 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Wed, 21 Dec 2016 16:43:27 +0200
Subject: [PATCH] Whitelist next project names: help, ci, admin, search

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
---
 app/validators/project_path_validator.rb                  | 2 +-
 changelogs/unreleased/dz-whitelist-more-project-names.yml | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 changelogs/unreleased/dz-whitelist-more-project-names.yml

diff --git a/app/validators/project_path_validator.rb b/app/validators/project_path_validator.rb
index d9ab8f167d8..79b2c99fd70 100644
--- a/app/validators/project_path_validator.rb
+++ b/app/validators/project_path_validator.rb
@@ -15,7 +15,7 @@ class ProjectPathValidator < ActiveModel::EachValidator
   #  'tree' as project name and 'deploy_keys' as route.
   #
   RESERVED = (NamespaceValidator::RESERVED -
-              %w[dashboard] +
+              %w[dashboard help ci admin search] +
               %w[tree commits wikis new edit create update logs_tree
                  preview blob blame raw files create_dir find_file]).freeze
 
diff --git a/changelogs/unreleased/dz-whitelist-more-project-names.yml b/changelogs/unreleased/dz-whitelist-more-project-names.yml
new file mode 100644
index 00000000000..4a3f1511a0b
--- /dev/null
+++ b/changelogs/unreleased/dz-whitelist-more-project-names.yml
@@ -0,0 +1,4 @@
+---
+title: 'Whitelist next project names: help, ci, admin, search'
+merge_request: 8227
+author:
-- 
GitLab