Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2019-01-15 18:05:09 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2019-01-15 19:16:03 +0300
commit2190704c61323191b581b4776bda450fa5a089b8 (patch)
tree9f14cab22947cc178063da958c44a24a272b2f33 /lib/api/projects.rb
parentf821a53b45d4b521ffb734b3b843f48e0d1ecfcd (diff)
API: Support username with dots
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 9f3a1699146..d76d5d822b1 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -128,7 +128,7 @@ module API
end
end
- resource :users, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
+ resource :users, requirements: { user_id: API::NO_SLASH_URL_PART_REGEX } do
desc 'Get a user projects' do
success Entities::BasicProjectDetails
end