Commit 357eb1eb authored by Dylan Griffith's avatar Dylan Griffith

Merge branch 'ap-group-finder-random-fix' into 'master'

GroupsFinder actor based FF

See merge request gitlab-org/gitlab!77207
parents dc0c0860 0289a8fc
......@@ -54,7 +54,7 @@ class GroupsFinder < UnionFinder
groups = []
if current_user
if Feature.enabled?(:use_traversal_ids_groups_finder, default_enabled: :yaml)
if Feature.enabled?(:use_traversal_ids_groups_finder, current_user, default_enabled: :yaml)
groups << current_user.authorized_groups.self_and_ancestors
groups << current_user.groups.self_and_descendants
else
......@@ -81,7 +81,7 @@ class GroupsFinder < UnionFinder
.groups
.where('members.access_level >= ?', params[:min_access_level])
if Feature.enabled?(:use_traversal_ids_groups_finder, default_enabled: :yaml)
if Feature.enabled?(:use_traversal_ids_groups_finder, current_user, default_enabled: :yaml)
groups.self_and_descendants
else
Gitlab::ObjectHierarchy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment