Commit c6f038ae authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflicts in app/controllers/groups/group_members_controller.rb and...

Resolve conflicts in app/controllers/groups/group_members_controller.rb and app/controllers/projects/project_members_controller.rb
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent a80f40e5
...@@ -27,12 +27,8 @@ class Groups::GroupMembersController < Groups::ApplicationController ...@@ -27,12 +27,8 @@ class Groups::GroupMembersController < Groups::ApplicationController
end end
def update def update
<<<<<<< HEAD
@group_member = @group.members_and_requesters.find(params[:id]) @group_member = @group.members_and_requesters.find(params[:id])
=======
@group_member = @group.group_members.find(params[:id])
.present(current_user: current_user) .present(current_user: current_user)
>>>>>>> 2f1fd0d9bbedfec1d84550fd7fe14aebe91713aa
return render_403 unless can?(current_user, :update_group_member, @group_member) return render_403 unless can?(current_user, :update_group_member, @group_member)
......
...@@ -27,12 +27,8 @@ class Projects::ProjectMembersController < Projects::ApplicationController ...@@ -27,12 +27,8 @@ class Projects::ProjectMembersController < Projects::ApplicationController
end end
def update def update
<<<<<<< HEAD
@project_member = @project.members_and_requesters.find(params[:id]) @project_member = @project.members_and_requesters.find(params[:id])
=======
@project_member = @project.project_members.find(params[:id])
.present(current_user: current_user) .present(current_user: current_user)
>>>>>>> 2f1fd0d9bbedfec1d84550fd7fe14aebe91713aa
return render_403 unless can?(current_user, :update_project_member, @project_member) return render_403 unless can?(current_user, :update_project_member, @project_member)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment