Skip to content
Snippets Groups Projects
Commit 97a51817 authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed error when updating groups

parent 638376c3
No related branches found
No related tags found
1 merge request!6148Project members UI
Loading
Loading
@@ -21,7 +21,7 @@ class Projects::GroupLinksController < Projects::ApplicationController
 
def update
@group_link = @project.project_group_links.find(params[:id])
return render_403 unless can?(current_user, action_member_permission(:admin, @group_link.group), @group_link.group)
return render_403 unless can?(current_user, :admin_group, @group_link.group)
 
@group_link.update_attributes(group_link_params)
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment