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-10-04 16:40:03 +0300
committerPhil Hughes <me@iamphill.com>2016-10-04 16:40:03 +0300
commitc2602aaff3f78ad12e1cc06136a7345699951454 (patch)
treea264db7619fd8bf3186698f56eb69ac8ea5cb9d3 /app/controllers/projects/group_links_controller.rb
parent2a6942abef10ab163a065600256cdbfa61ffdbf1 (diff)
Updated Ruby
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 7b6f07465e0..2994d8c9666 100644
--- a/app/controllers/projects/group_links_controller.rb
+++ b/app/controllers/projects/group_links_controller.rb
@@ -1,6 +1,7 @@
class Projects::GroupLinksController < Projects::ApplicationController
layout 'project_settings'
before_action :authorize_admin_project!
+ before_action :authorize_admin_project_member!, only: [:update]
def index
@group_links = project.project_group_links.all
@@ -21,7 +22,6 @@ class Projects::GroupLinksController < Projects::ApplicationController
def update
@group_link = @project.project_group_links.find(params[:id])
- return render_403 unless can?(current_user, :admin_project_member, @project)
@group_link.update_attributes(group_link_params)
end