diff options
author | Phil Hughes <me@iamphill.com> | 2016-09-01 15:27:42 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-09-13 08:44:59 +0100 |
commit | e33cda96cb20f47fdde4314f6bb00e43bbf5aeb4 (patch) | |
tree | a9e2e598514374b479542f58e97c283027d0a14d /app/controllers/projects | |
parent | 23993147fbf24e868d33927dc1194b60a106076d (diff) | |
download | gitlab-ce-e33cda96cb20f47fdde4314f6bb00e43bbf5aeb4.tar.gz |
Fixed group members not deleting
Combine both group members & project members in project members list
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/project_members_controller.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/controllers/projects/project_members_controller.rb b/app/controllers/projects/project_members_controller.rb index 6060ddf025b..abb92938211 100644 --- a/app/controllers/projects/project_members_controller.rb +++ b/app/controllers/projects/project_members_controller.rb @@ -6,15 +6,16 @@ class Projects::ProjectMembersController < Projects::ApplicationController def index @groups = @project.project_group_links.all - @project_members = @project.project_members + @project_members = @project.team.members.all + @project_members_size = @project_members.size + @group_members = @project.group.group_members @project_members = @project_members.non_invite unless can?(current_user, :admin_project, @project) if params[:search].present? - users = @project.users.search(params[:search]).to_a - @project_members = @project_members.where(user_id: users) + @project_members = @project_members.search(params[:search]) end - @project_members = @project_members.order('access_level DESC') + @project_members = @project_members.page(params[:page]) @requesters = @project.requesters if can?(current_user, :admin_project, @project) |