BigW Consortium Gitlab

Commit ecf1af65 by Andreas Brandl Committed by Ian Baum

Fix snippets problem in 10-5-stable-patch-4

parent 790bcf70
......@@ -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