diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-29 06:12:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-29 06:12:19 +0300 |
commit | 7d8cc770b14b41fbe40181d447042dccdc45bff8 (patch) | |
tree | 4e14a5e236df733f3c0998cd351a72759c48eb46 /lib/gitlab/graphql | |
parent | 8c9cb9bb575b8d9dff39e5b4891fabb1e0f6a687 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r-- | lib/gitlab/graphql/authorize/authorize_resource.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/graphql/authorize/authorize_resource.rb b/lib/gitlab/graphql/authorize/authorize_resource.rb index 983bdb9c0a2..e3548b97ebf 100644 --- a/lib/gitlab/graphql/authorize/authorize_resource.rb +++ b/lib/gitlab/graphql/authorize/authorize_resource.rb @@ -45,8 +45,8 @@ module Gitlab end end - def find_object(*args) - raise NotImplementedError, "Implement #find_object in #{self.class.name}" + def find_object(id:) + GitlabSchema.find_by_gid(id) end def authorized_find!(*args, **kwargs) |