Whitelist next project names: assets, profile, public
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
6003f6ea93
commit
3551a625a8
3 changed files with 5 additions and 6 deletions
|
@ -15,7 +15,7 @@ class ProjectPathValidator < ActiveModel::EachValidator
|
||||||
# 'tree' as project name and 'deploy_keys' as route.
|
# 'tree' as project name and 'deploy_keys' as route.
|
||||||
#
|
#
|
||||||
RESERVED = (NamespaceValidator::RESERVED -
|
RESERVED = (NamespaceValidator::RESERVED -
|
||||||
%w[dashboard help ci admin search notes services] +
|
%w[dashboard help ci admin search notes services assets profile public] +
|
||||||
%w[tree commits wikis new edit create update logs_tree
|
%w[tree commits wikis new edit create update logs_tree
|
||||||
preview blob blame raw files create_dir find_file]).freeze
|
preview blob blame raw files create_dir find_file]).freeze
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: 'Whitelist next project names: assets, profile, public'
|
||||||
|
merge_request: 8470
|
||||||
|
author:
|
|
@ -10,7 +10,6 @@ class RenameReservedProjectNames < ActiveRecord::Migration
|
||||||
|
|
||||||
KNOWN_PATHS = %w(.well-known
|
KNOWN_PATHS = %w(.well-known
|
||||||
all
|
all
|
||||||
assets
|
|
||||||
blame
|
blame
|
||||||
blob
|
blob
|
||||||
commits
|
commits
|
||||||
|
@ -18,7 +17,6 @@ class RenameReservedProjectNames < ActiveRecord::Migration
|
||||||
create_dir
|
create_dir
|
||||||
edit
|
edit
|
||||||
files
|
files
|
||||||
files
|
|
||||||
find_file
|
find_file
|
||||||
groups
|
groups
|
||||||
hooks
|
hooks
|
||||||
|
@ -26,11 +24,8 @@ class RenameReservedProjectNames < ActiveRecord::Migration
|
||||||
logs_tree
|
logs_tree
|
||||||
merge_requests
|
merge_requests
|
||||||
new
|
new
|
||||||
new
|
|
||||||
preview
|
preview
|
||||||
profile
|
|
||||||
projects
|
projects
|
||||||
public
|
|
||||||
raw
|
raw
|
||||||
repository
|
repository
|
||||||
robots.txt
|
robots.txt
|
||||||
|
|
Loading…
Reference in a new issue