diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-04 16:40:03 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-04 16:40:03 +0300 |
commit | c2602aaff3f78ad12e1cc06136a7345699951454 (patch) | |
tree | a264db7619fd8bf3186698f56eb69ac8ea5cb9d3 /app/controllers/projects/group_links_controller.rb | |
parent | 2a6942abef10ab163a065600256cdbfa61ffdbf1 (diff) |
Updated Ruby
Diffstat (limited to 'app/controllers/projects/group_links_controller.rb')
-rw-r--r-- | app/controllers/projects/group_links_controller.rb | 2 |
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 |