From e05a86cecdf52a0ec1f0f4ce4f30287f881b8ea2 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Tue, 5 Mar 2019 16:12:27 +0000 Subject: Allow all personal snippets to be accessed by API Previously, you could only access personal snippets in the API if you had authored them. The documentation doesn't state that this is the case, and it's quite surprising. --- app/finders/snippets_finder.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/finders/snippets_finder.rb') diff --git a/app/finders/snippets_finder.rb b/app/finders/snippets_finder.rb index d3774746cb8..bf29f15642d 100644 --- a/app/finders/snippets_finder.rb +++ b/app/finders/snippets_finder.rb @@ -69,6 +69,8 @@ class SnippetsFinder < UnionFinder base.with_optional_visibility(visibility_from_scope).fresh end + private + # Produces a query that retrieves snippets from multiple projects. # # The resulting query will, depending on the user's permissions, include the -- cgit v1.2.3