summaryrefslogtreecommitdiff
path: root/lib/gitlab/project_authorizations/with_nested_groups.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/project_authorizations/with_nested_groups.rb')
-rw-r--r--lib/gitlab/project_authorizations/with_nested_groups.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/project_authorizations/with_nested_groups.rb b/lib/gitlab/project_authorizations/with_nested_groups.rb
index e3da1634fa5..448c3f3a7d8 100644
--- a/lib/gitlab/project_authorizations/with_nested_groups.rb
+++ b/lib/gitlab/project_authorizations/with_nested_groups.rb
@@ -49,13 +49,11 @@ module Gitlab
.where('p_ns.share_with_group_lock IS FALSE')
]
- union = Gitlab::SQL::Union.new(relations)
-
ProjectAuthorization
.unscoped
.with
.recursive(cte.to_arel)
- .select_from_union(union)
+ .select_from_union(relations)
end
private