Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-09-02 19:39:16 +0300
committerPhil Hughes <me@iamphill.com>2016-09-13 10:44:59 +0300
commit97a51817bf1e6b0504bb84b686daf7e931ded2da (patch)
treead0e74e4d25b9e9011cba919f9a4b7669d275507 /app/controllers/projects/group_links_controller.rb
parent638376c35494860936bf2858c01115dc4afe0bfe (diff)
Fixed error when updating groups
Diffstat (limited to 'app/controllers/projects/group_links_controller.rb')
-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