diff options
author | Phil Hughes <me@iamphill.com> | 2016-09-01 13:48:20 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-09-13 08:44:59 +0100 |
commit | 4afd17b2786b5bca075ac7508979fad582c65bc9 (patch) | |
tree | 63fc1618f54ef9318e1621b1f15ab574be1a6fbb /app/controllers/projects/group_links_controller.rb | |
parent | 87a0501ded0d08ae718b6f3f6feb4ac2c9c6b016 (diff) | |
download | gitlab-ce-4afd17b2786b5bca075ac7508979fad582c65bc9.tar.gz |
Included groups on project_members page
Diffstat (limited to 'app/controllers/projects/group_links_controller.rb')
-rw-r--r-- | app/controllers/projects/group_links_controller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/projects/group_links_controller.rb b/app/controllers/projects/group_links_controller.rb index d0c4550733c..57c54bf625a 100644 --- a/app/controllers/projects/group_links_controller.rb +++ b/app/controllers/projects/group_links_controller.rb @@ -19,9 +19,21 @@ class Projects::GroupLinksController < Projects::ApplicationController redirect_to namespace_project_group_links_path(project.namespace, project) end + def update + @group_link = @project.project_group_links.find(params[:id]) + + @group_link.update_attributes(group_link_params) + end + def destroy project.project_group_links.find(params[:id]).destroy redirect_to namespace_project_group_links_path(project.namespace, project) end + + protected + + def group_link_params + params.require(:group_link).permit(:group_access, :expires_at) + end end |