diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-03 14:07:20 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-03 14:07:20 +0200 |
commit | 61cfd1d2733a717934a723d36f60e7bcd09fad05 (patch) | |
tree | 9160a05f3f68618dc0a75a2b5bd37441668a04b6 /lib/api | |
parent | 79aac2c128e0c2fa8fd657af273fbd219002f39c (diff) | |
download | gitlab-ce-61cfd1d2733a717934a723d36f60e7bcd09fad05.tar.gz |
Wrap group removal into service
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/groups.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index f768c750402..e88b6e31775 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -62,7 +62,7 @@ module API delete ":id" do group = find_group(params[:id]) authorize! :admin_group, group - group.destroy + DestroyGroupService.new(group, current_user).execute end # Transfer a project to the Group namespace |