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

Return 403 if user can't update group

parent 383d3c63
No related branches found
No related tags found
No related merge requests found
Loading
@@ -21,6 +21,7 @@ class Projects::GroupLinksController < Projects::ApplicationController
Loading
@@ -21,6 +21,7 @@ class Projects::GroupLinksController < Projects::ApplicationController
   
def update def update
@group_link = @project.project_group_links.find(params[:id]) @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)
   
@group_link.update_attributes(group_link_params) @group_link.update_attributes(group_link_params)
end 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