Skip to content

Fix a KeyError in GitlabSchema

Nick Thomas requested to merge (removed):60057-fix-gitlab-schema-keyerror into master

What does this MR do?

Fixes an exception that is raised if you try to run GitlabSchema with a context, but without a current_user key in it.

Pretty sure this is unintentional. Introduced by !26629 (merged) and interacting with 435d98c9

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #60057 (closed)

Merge request reports