BigW Consortium Gitlab

Commit 517b9705 by Ian Baum

Merge branch '42877-for-10-5-stable-patch-4' into '10-5-stable-patch-4'

Fix snippets problem in 10-5-stable-patch-4 See merge request gitlab-org/gitlab-ce!17610
parents 790bcf70 ecf1af65
......@@ -82,9 +82,6 @@ class SnippetsFinder < UnionFinder
end
def feature_available_projects
# Don't return any project related snippets if the user cannot read cross project
return table[:id].eq(nil) unless Ability.allowed?(current_user, :read_cross_project)
projects = projects_for_user do |part|
part.with_feature_available_for_user(:snippets, current_user)
end.select(:id)
......
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