diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-31 20:39:24 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-31 21:46:36 +0300 |
commit | 01d8c1f6f0dacbb8d4779d0226e1c02eb11dfe0e (patch) | |
tree | 1950593b9f18354a3dfeb0a1f76c99026bee498c /app/finders/snippets_finder.rb | |
parent | fc892db6f02c992bef32bf994a694efd5205f61b (diff) |
Whitelist none method from ActiveRecord::Querying
Diffstat (limited to 'app/finders/snippets_finder.rb')
-rw-r--r-- | app/finders/snippets_finder.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/finders/snippets_finder.rb b/app/finders/snippets_finder.rb index 3528e4228b2..f90971bb9f6 100644 --- a/app/finders/snippets_finder.rb +++ b/app/finders/snippets_finder.rb @@ -43,7 +43,6 @@ class SnippetsFinder < UnionFinder end end - # rubocop: disable CodeReuse/ActiveRecord def authorized_snippets_from_project if can?(current_user, :read_project_snippet, project) if project.team.member?(current_user) @@ -55,7 +54,6 @@ class SnippetsFinder < UnionFinder Snippet.none end end - # rubocop: enable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord def authorized_snippets |