summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-09-01 15:27:42 +0100
committerPhil Hughes <me@iamphill.com>2016-09-13 08:44:59 +0100
commite33cda96cb20f47fdde4314f6bb00e43bbf5aeb4 (patch)
treea9e2e598514374b479542f58e97c283027d0a14d /app/controllers/projects
parent23993147fbf24e868d33927dc1194b60a106076d (diff)
downloadgitlab-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.rb9
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)