summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-03 14:07:15 +0200
committerBob Van Landuyt <bob@gitlab.com>2017-05-01 11:14:23 +0200
commit56e031d3032996233f2c71ba7b5e3fc398da0b53 (patch)
tree158a33fea4649026565518ee268c7c5c055598e6 /app
parentd6dfbf02f706c138b43c06886ba8b36512e32b0a (diff)
downloadgitlab-ce-56e031d3032996233f2c71ba7b5e3fc398da0b53.tar.gz
Disallow some more namespaces
These routes seem to be taken
Diffstat (limited to 'app')
-rw-r--r--app/validators/namespace_validator.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/validators/namespace_validator.rb b/app/validators/namespace_validator.rb
index 77ca033e97f..9601013f2d2 100644
--- a/app/validators/namespace_validator.rb
+++ b/app/validators/namespace_validator.rb
@@ -33,6 +33,22 @@ class NamespaceValidator < ActiveModel::EachValidator
u
unsubscribes
users
+ api
+ autocomplete
+ search
+ member
+ explore
+ uploads
+ import
+ notification_settings
+ abuse_reports
+ invites
+ help
+ koding
+ health_check
+ jwt
+ oauth
+ sent_notifications
].freeze
WILDCARD_ROUTES = %w[tree commits wikis new edit create update logs_tree