diff options
author | Luke Duncalfe <lduncalfe@eml.cc> | 2019-06-26 10:15:14 +1200 |
---|---|---|
committer | Luke Duncalfe <lduncalfe@eml.cc> | 2019-06-26 10:15:14 +1200 |
commit | bbdcbd98aed2bfb4eba008669d3fca500b6e0ace (patch) | |
tree | d79260df3dc7becd70402ca6875b6c44e0d88722 /lib | |
parent | b2a615c3c60dd3315ecf33d5fdb61061c9d4003e (diff) | |
download | gitlab-ce-bbdcbd98aed2bfb4eba008669d3fca500b6e0ace.tar.gz |
Remove unused authorized_find methodgraphql-error-when-authorizing-with-no-permissions-defined
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29921#note_184713939
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/graphql/authorize/authorize_resource.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/gitlab/graphql/authorize/authorize_resource.rb b/lib/gitlab/graphql/authorize/authorize_resource.rb index c619464f69f..ef5caaf5b0e 100644 --- a/lib/gitlab/graphql/authorize/authorize_resource.rb +++ b/lib/gitlab/graphql/authorize/authorize_resource.rb @@ -27,12 +27,6 @@ module Gitlab raise NotImplementedError, "Implement #find_object in #{self.class.name}" end - def authorized_find(*args) - object = find_object(*args) - - object if authorized?(object) - end - def authorized_find!(*args) object = find_object(*args) authorize!(object) |