summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-05-10 12:03:29 +0200
committerBob Van Landuyt <bob@gitlab.com>2017-05-10 16:48:18 +0200
commitebd8b7f60f41358df562625a4692f352b86b8c80 (patch)
tree69faf7b4f52af5904d2426116eeee912c8bbaf9c
parent19e91e4ba9f037b087640d55b3385febe243cf46 (diff)
downloadgitlab-ce-bvl-security-patches.tar.gz
Use new SnippetsFinder signature in APIbvl-security-patches
-rw-r--r--lib/api/helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 86bf567fe69..c643ea8e5a7 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -91,8 +91,8 @@ module API
end
def find_project_snippet(id)
- finder_params = { filter: :by_project, project: user_project }
- SnippetsFinder.new.execute(current_user, finder_params).find(id)
+ finder_params = { project: user_project }
+ SnippetsFinder.new(current_user, finder_params).execute.find(id)
end
def find_merge_request_with_access(iid, access_level = :read_merge_request)