summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-09-02 17:39:16 +0100
committerPhil Hughes <me@iamphill.com>2016-09-13 08:44:59 +0100
commit97a51817bf1e6b0504bb84b686daf7e931ded2da (patch)
treead0e74e4d25b9e9011cba919f9a4b7669d275507
parent638376c35494860936bf2858c01115dc4afe0bfe (diff)
downloadgitlab-ce-97a51817bf1e6b0504bb84b686daf7e931ded2da.tar.gz
Fixed error when updating groups
-rw-r--r--app/controllers/projects/group_links_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/group_links_controller.rb b/app/controllers/projects/group_links_controller.rb
index b5e314dced3..3574ecf2811 100644
--- a/app/controllers/projects/group_links_controller.rb
+++ b/app/controllers/projects/group_links_controller.rb
@@ -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