summaryrefslogtreecommitdiff
path: root/lib/api/snippets.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-22 06:06:20 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-22 06:06:20 +0000
commit8e75748aabcbcea411f8bbc68936805bc2b5ff0c (patch)
tree9186d3e27c66b3680e2039d6769233750c74cc4b /lib/api/snippets.rb
parent98eaa8d2de5dd751d7a42fa5d601715064f14297 (diff)
downloadgitlab-ce-8e75748aabcbcea411f8bbc68936805bc2b5ff0c.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/snippets.rb')
-rw-r--r--lib/api/snippets.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/snippets.rb b/lib/api/snippets.rb
index f8b37b33348..f759b3607a8 100644
--- a/lib/api/snippets.rb
+++ b/lib/api/snippets.rb
@@ -14,7 +14,7 @@ module API
end
def public_snippets
- SnippetsFinder.new(current_user, scope: :are_public).execute
+ Snippet.only_personal_snippets.are_public.fresh
end
def snippets
@@ -33,7 +33,7 @@ module API
present paginate(snippets_for_current_user), with: Entities::PersonalSnippet
end
- desc 'List all public snippets current_user has access to' do
+ desc 'List all public personal snippets current_user has access to' do
detail 'This feature was introduced in GitLab 8.15.'
success Entities::PersonalSnippet
end