summaryrefslogtreecommitdiff
path: root/app/validators
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 /app/validators
parentc1dbae90033c10bef1aaa3c5c34219c1d0e5ef61 (diff)
downloadgitlab-ce-8b92e9c08b730b02816f501c88e3c237fa77d813.tar.gz
Allow projects with dashboard as path
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/project_path_validator.rb3
1 files changed, 2 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