diff options
author | Rémy Coutable <remy@rymai.me> | 2016-06-17 15:08:02 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-06-18 06:46:45 +0300 |
commit | 6c5b2377f769185f562578791139a13939867b73 (patch) | |
tree | be106b7f7b350b1587e00edb37e02844df07dfd4 /app/controllers/groups/group_members_controller.rb | |
parent | 4652489f40a4ff2b749f9ad495986a7a17448243 (diff) |
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/group_members_controller.rb')
-rw-r--r-- | app/controllers/groups/group_members_controller.rb | 2 |
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.' } |