Commit baaff870 authored by charlie ablett's avatar charlie ablett

Merge branch 'sh-fix-graphql-kwargs' into 'master'

Fix Ruby 2.7 deprecation warning in GraphQL authorize_resource

See merge request gitlab-org/gitlab!44827
parents 3340a4e0 ec5b6cff
......@@ -29,8 +29,8 @@ module Gitlab
raise NotImplementedError, "Implement #find_object in #{self.class.name}"
end
def authorized_find!(*args)
object = Graphql::Lazy.force(find_object(*args))
def authorized_find!(*args, **kwargs)
object = Graphql::Lazy.force(find_object(*args, **kwargs))
authorize!(object)
......
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