diff options
Diffstat (limited to 'app/graphql/gitlab_schema.rb')
-rw-r--r-- | app/graphql/gitlab_schema.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/graphql/gitlab_schema.rb b/app/graphql/gitlab_schema.rb index 0c7195c5be3..0b56d6f4a90 100644 --- a/app/graphql/gitlab_schema.rb +++ b/app/graphql/gitlab_schema.rb @@ -147,6 +147,12 @@ class GitlabSchema < GraphQL::Schema global_ids.map { |gid| parse_gid(gid, ctx) } end + def unauthorized_field(error) + return error.field.if_unauthorized if error.field.respond_to?(:if_unauthorized) && error.field.if_unauthorized + + super + end + private def max_query_complexity(ctx) |