summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-20 12:07:57 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-20 12:07:57 +0000
commit9180bdd445c92f76f3fd4f81d179d9ce63b74871 (patch)
tree990e2ef3b69ba423a0985e429a1bbc5a43943881
parentb1df8c4ec3f3213b7387e643bf57ce0fb1e1bcae (diff)
parent50288a6ace0e75aa3e6c09c534f0be9800c95836 (diff)
downloadgitlab-ce-9180bdd445c92f76f3fd4f81d179d9ce63b74871.tar.gz
Merge branch 'remove-unused-code-project-members-controller' into 'master'
Removed code from project members controller ## What does this MR do? Removes code that was meant to be added to a different branch as an experiment. See merge request !7012
-rw-r--r--app/controllers/projects/project_members_controller.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/controllers/projects/project_members_controller.rb b/app/controllers/projects/project_members_controller.rb
index 37a86ed0523..2a07d154853 100644
--- a/app/controllers/projects/project_members_controller.rb
+++ b/app/controllers/projects/project_members_controller.rb
@@ -32,21 +32,6 @@ class Projects::ProjectMembersController < Projects::ApplicationController
current_user: current_user
)
- if params[:group_ids].present?
- group_ids = params[:group_ids].split(',')
- groups = Group.where(id: group_ids)
-
- groups.each do |group|
- next unless can?(current_user, :read_group, group)
-
- project.project_group_links.create(
- group: group,
- group_access: params[:access_level],
- expires_at: params[:expires_at]
- )
- end
- end
-
redirect_to namespace_project_project_members_path(@project.namespace, @project)
end