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/concerns | |
parent | fc892db6f02c992bef32bf994a694efd5205f61b (diff) |
Whitelist none method from ActiveRecord::Querying
Diffstat (limited to 'app/finders/concerns')
-rw-r--r-- | app/finders/concerns/finder_with_cross_project_access.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/finders/concerns/finder_with_cross_project_access.rb b/app/finders/concerns/finder_with_cross_project_access.rb index e038636f0c4..220f62bcc7f 100644 --- a/app/finders/concerns/finder_with_cross_project_access.rb +++ b/app/finders/concerns/finder_with_cross_project_access.rb @@ -16,7 +16,6 @@ module FinderWithCrossProjectAccess end override :execute - # rubocop: disable CodeReuse/ActiveRecord def execute(*args) check = Gitlab::CrossProjectAccess.find_check(self) original = super @@ -30,7 +29,6 @@ module FinderWithCrossProjectAccess original end end - # rubocop: enable CodeReuse/ActiveRecord # We can skip the cross project check for finding indivitual records. # this would be handled by the `can?(:read_*, result)` call in `FinderMethods` |