diff options
Diffstat (limited to 'app/graphql/gitlab_schema.rb')
-rw-r--r-- | app/graphql/gitlab_schema.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/graphql/gitlab_schema.rb b/app/graphql/gitlab_schema.rb index 7e3c09440a2..53efd9042b1 100644 --- a/app/graphql/gitlab_schema.rb +++ b/app/graphql/gitlab_schema.rb @@ -31,7 +31,7 @@ class GitlabSchema < GraphQL::Schema end def self.max_query_complexity(ctx) - current_user = ctx&.fetch(:current_user) + current_user = ctx&.fetch(:current_user, nil) if current_user&.admin ADMIN_COMPLEXITY |