diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-21 22:08:55 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-21 22:08:55 +0300 |
commit | 1c2d9015da095a9c4148cd5455e9ae4e8f854674 (patch) | |
tree | ced18d61ac929307a18bbdf02842fa0a21e836d7 /app/validators/project_path_validator.rb | |
parent | f3f42f7b8f7a9e92af57e2becfc8411dafc31af6 (diff) |
Whitelist next project names: notes, services
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/validators/project_path_validator.rb')
-rw-r--r-- | app/validators/project_path_validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/validators/project_path_validator.rb b/app/validators/project_path_validator.rb index 79b2c99fd70..aec0d0ce44e 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 help ci admin search] + + %w[dashboard help ci admin search notes services] + %w[tree commits wikis new edit create update logs_tree preview blob blame raw files create_dir find_file]).freeze |