summaryrefslogtreecommitdiff
path: root/lib/api/groups.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-07-20 16:33:18 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-07-20 16:33:18 +0300
commit6b8ad689da393125bb2d1e548211c9a50039b0a7 (patch)
treeeb35d412b07e28c58d9cbd017ca357ae16aefef0 /lib/api/groups.rb
parent4766a77b1d44bb6989e6c86a7a7dd10f6983ba4e (diff)
downloadgitlab-ce-6b8ad689da393125bb2d1e548211c9a50039b0a7.tar.gz
Update grape gemdz-update-grape
New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r--lib/api/groups.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb
index ebbaed0cbb7..49c3b2278c7 100644
--- a/lib/api/groups.rb
+++ b/lib/api/groups.rb
@@ -125,6 +125,8 @@ module API
delete ":id" do
group = find_group!(params[:id])
authorize! :admin_group, group
+
+ status 204
::Groups::DestroyService.new(group, current_user).execute
end