summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-21 13:00:10 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-21 13:00:10 +0200
commit8b92e9c08b730b02816f501c88e3c237fa77d813 (patch)
tree5f78141e8700c7541b425f5adc7f38e81da5036d
parentc1dbae90033c10bef1aaa3c5c34219c1d0e5ef61 (diff)
downloadgitlab-ce-8b92e9c08b730b02816f501c88e3c237fa77d813.tar.gz
Allow projects with dashboard as path
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/validators/project_path_validator.rb3
-rw-r--r--changelogs/unreleased/dz-whitelist-dashboard-project-path.yml4
2 files changed, 6 insertions, 1 deletions
diff --git a/app/validators/project_path_validator.rb b/app/validators/project_path_validator.rb
index 927c67b65b0..d9ab8f167d8 100644
--- a/app/validators/project_path_validator.rb
+++ b/app/validators/project_path_validator.rb
@@ -14,7 +14,8 @@ class ProjectPathValidator < ActiveModel::EachValidator
# without tree as reserved name routing can match 'group/project' as group name,
# 'tree' as project name and 'deploy_keys' as route.
#
- RESERVED = (NamespaceValidator::RESERVED +
+ RESERVED = (NamespaceValidator::RESERVED -
+ %w[dashboard] +
%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-dashboard-project-path.yml b/changelogs/unreleased/dz-whitelist-dashboard-project-path.yml
new file mode 100644
index 00000000000..2787a5c57df
--- /dev/null
+++ b/changelogs/unreleased/dz-whitelist-dashboard-project-path.yml
@@ -0,0 +1,4 @@
+---
+title: Allow projects with 'dashboard' as path
+merge_request:
+author: