Commit 05cb97ec authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix js lint and rubocop violations

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent f85f4c60
...@@ -8,7 +8,7 @@ module Elastic ...@@ -8,7 +8,7 @@ module Elastic
snippets_access_level snippets_access_level
wiki_access_level wiki_access_level
repository_access_level repository_access_level
) ).freeze
included do included do
include ApplicationSearch include ApplicationSearch
......
...@@ -81,7 +81,8 @@ module Elastic ...@@ -81,7 +81,8 @@ module Elastic
should: [ should: [
{ term: { author_id: user.id } }, { term: { author_id: user.id } },
{ terms: { project_id: user.authorized_projects.pluck(:id) } }, { terms: { project_id: user.authorized_projects.pluck(:id) } },
{ bool: { {
bool: {
filter: { terms: { visibility_level: [Snippet::PUBLIC, Snippet::INTERNAL] } }, filter: { terms: { visibility_level: [Snippet::PUBLIC, Snippet::INTERNAL] } },
must_not: { exists: { field: 'project_id' } } must_not: { exists: { field: 'project_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