Commit 0289a8fc authored by Alex Pooley's avatar Alex Pooley Committed by Dylan Griffith

GroupsFinder actor based FF

parent 7e079330
...@@ -54,7 +54,7 @@ class GroupsFinder < UnionFinder ...@@ -54,7 +54,7 @@ class GroupsFinder < UnionFinder
groups = [] groups = []
if current_user 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.authorized_groups.self_and_ancestors
groups << current_user.groups.self_and_descendants groups << current_user.groups.self_and_descendants
else else
...@@ -81,7 +81,7 @@ class GroupsFinder < UnionFinder ...@@ -81,7 +81,7 @@ class GroupsFinder < UnionFinder
.groups .groups
.where('members.access_level >= ?', params[:min_access_level]) .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 groups.self_and_descendants
else else
Gitlab::ObjectHierarchy 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