summaryrefslogtreecommitdiff
path: root/lib/api/users.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-02-20 15:16:23 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-02-20 15:16:23 +0000
commitfbbbf1e4e77768a40b835455f17749384f7c4984 (patch)
tree641ea53edc2509be47280a03ec675c2dd97cc94f /lib/api/users.rb
parent173dbeb972d0da365ac77129d0e12727ae571e91 (diff)
parent8f690604a523115370c011c767dbd76cb85c0f63 (diff)
downloadgitlab-ce-fbbbf1e4e77768a40b835455f17749384f7c4984.tar.gz
Merge branch 'api-post-block' into 'master'
API: Use POST to (un)block a user Closes #14596 See merge request !9371
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r--lib/api/users.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb
index 05538f5a42f..fbc17953691 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -314,7 +314,7 @@ module API
params do
requires :id, type: Integer, desc: 'The ID of the user'
end
- put ':id/block' do
+ post ':id/block' do
authenticated_as_admin!
user = User.find_by(id: params[:id])
not_found!('User') unless user
@@ -330,7 +330,7 @@ module API
params do
requires :id, type: Integer, desc: 'The ID of the user'
end
- put ':id/unblock' do
+ post ':id/unblock' do
authenticated_as_admin!
user = User.find_by(id: params[:id])
not_found!('User') unless user