summaryrefslogtreecommitdiff
path: root/app/controllers/groups
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-06-17 14:08:02 +0200
committerRémy Coutable <remy@rymai.me>2016-06-18 05:46:45 +0200
commit6c5b2377f769185f562578791139a13939867b73 (patch)
treebe106b7f7b350b1587e00edb37e02844df07dfd4 /app/controllers/groups
parent4652489f40a4ff2b749f9ad495986a7a17448243 (diff)
downloadgitlab-ce-6c5b2377f769185f562578791139a13939867b73.tar.gz
Use the new Members::DestroyService in group/project member controllers
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/controllers/groups')
-rw-r--r--app/controllers/groups/group_members_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups/group_members_controller.rb b/app/controllers/groups/group_members_controller.rb
index d0f2e2949f0..c3929ded6dd 100644
--- a/app/controllers/groups/group_members_controller.rb
+++ b/app/controllers/groups/group_members_controller.rb
@@ -38,7 +38,7 @@ class Groups::GroupMembersController < Groups::ApplicationController
return render_403 unless can?(current_user, :destroy_group_member, @group_member)
- @group_member.destroy
+ Members::DestroyService.new(@group_member, current_user).execute
respond_to do |format|
format.html { redirect_to group_group_members_path(@group), notice: 'User was successfully removed from group.' }