Commit ec5b6cff authored by Stan Hu's avatar Stan Hu

Fix Ruby 2.7 deprecation warning in GraphQL authorize_resource

Keyword and non-keyword arguments are now separated, so split them out
explicitly.
parent f6330a06
......@@ -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