From 2f8d8dca22eca9937cee14765ceadc2aee266616 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 30 Sep 2020 23:32:30 +0000 Subject: Add latest changes from gitlab-org/security/gitlab@13-4-stable-ee --- app/graphql/mutations/metrics/dashboard/annotations/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/graphql') diff --git a/app/graphql/mutations/metrics/dashboard/annotations/base.rb b/app/graphql/mutations/metrics/dashboard/annotations/base.rb index 3126267da64..ad52f84378d 100644 --- a/app/graphql/mutations/metrics/dashboard/annotations/base.rb +++ b/app/graphql/mutations/metrics/dashboard/annotations/base.rb @@ -9,7 +9,7 @@ module Mutations # This method is defined here in order to be used by `authorized_find!` in the subclasses. def find_object(id:) - GitlabSchema.object_from_id(id) + GitlabSchema.object_from_id(id, expected_type: ::Metrics::Dashboard::Annotation) end end end -- cgit v1.2.3