summaryrefslogtreecommitdiff
path: root/app/finders/members_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/members_finder.rb')
-rw-r--r--app/finders/members_finder.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/finders/members_finder.rb b/app/finders/members_finder.rb
index de6eacbb1e0..de2a4ce3518 100644
--- a/app/finders/members_finder.rb
+++ b/app/finders/members_finder.rb
@@ -31,7 +31,11 @@ class MembersFinder
attr_reader :project, :current_user, :group
def find_members(include_relations)
- project_members = project.project_members
+ project_members = if Feature.enabled?(:project_members_index_by_project_namespace, project)
+ project.namespace_members
+ else
+ project.project_members
+ end
if params[:active_without_invites_and_requests].present?
project_members = project_members.active_without_invites_and_requests