diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-17 07:29:57 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-17 07:29:57 +0000 |
commit | da3d35952d5b106a3e507244b2ac649a082652b6 (patch) | |
tree | 40c263ec388afd7fe2155f4cb3ea0aa6dc69f014 /lib | |
parent | efa90d0a14805d48a0693cbd5f05bbe008ee6b6e (diff) | |
parent | d241c6d057798dfbdb6d69e74f82e1ad1848805b (diff) | |
download | gitlab-ce-da3d35952d5b106a3e507244b2ac649a082652b6.tar.gz |
Merge branch 'restrict-user-api-integers' into 'master'
Restrict users API endpoints to use integer IDs
Closes #2267
See merge request !1156
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/users.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index ee29f952246..813cc379e43 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -3,7 +3,7 @@ module API class Users < Grape::API before { authenticate! } - resource :users do + resource :users, requirements: { uid: /[0-9]*/, id: /[0-9]*/ } do # Get a users list # # Example Request: |